void main()
{
int c;
c=printf("Hello world");
printf("\n%d",c);
}

Answers were Sorted based on User's Feedback



void main() { int c; c=printf("Hello world"); printf("\n%d",c); } ..

Answer / vijeselvam

Hello world
11 /*if their is single space between the words that are
printed*/
12 /*if their is double space between the words that are
printed*/

Is This Answer Correct ?    2 Yes 0 No

void main() { int c; c=printf("Hello world"); printf("\n%d",c); } ..

Answer / nitin agam

Hello world
12

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Code Interview Questions

main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }

2 Answers  


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


main() { clrscr(); } clrscr();

2 Answers  


write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?

1 Answers  


WAP to display 1,2,3,4,5........N

2 Answers  






char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }

1 Answers  


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


How to read a directory in a C program?

4 Answers  


main() { main(); }

1 Answers  


main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 Answers  


#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 Answers  


Who could write how to find a prime number in dynamic array?

1 Answers  


Categories