C Programming and Technical Programming

if(.......)
{
printf("hello");
}
else
{
printf("world");
}
without changing any code just put the condition in if(......) so that the output will be "helloWorld".

Read Solution (Total 15)

C Other Question

Input : ABCD
Output :
ABC D
AB CD
A BCD
AB C D
A BC D
A B CD
A B C D
#include
int main()
{
void *ptr1, *ptr2;
int x,y;
x = 100;
y = 200;

ptr1 = &x;
ptr2 = &y;

printf("%d", *(int*)ptr1);
printf("n%d", *(int*)ptr2);
}