C Programming and Technical Programming Output

Input : ABCD
Output :
ABC D
AB CD
A BCD
AB C D
A BC D
A B CD
A B C D

Read Solution (Total 4)

C Other Question

Consider the following code:

function modify(a,b)
{
integer c, d = 2
c = a*d + b
return c
}

function calculate( )
{
integer a = 5, b = 20, c
integer d = 10
c = modify(a, b);
c = c + d
print c
}

Assume that a and b were passed by value. What will be the output of the function calculate( ) ?
if(.......)
{
printf("hello");
}
else
{
printf("world");
}
without changing any code just put the condition in if(......) so that the output will be "helloWorld".