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

What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }

1 Answers  


#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?

2 Answers  


how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!

8 Answers   GATE,


How will u find whether a linked list has a loop or not?

8 Answers   Microsoft,


main() { extern int i; i=20; printf("%d",i); }

1 Answers   Value Labs,






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

2 Answers  


How we print the table of 3 using for loop in c programing?

7 Answers  


main() { int a[10]; printf("%d",*a+1-*a+3); }

1 Answers  


#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }

1 Answers  


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

0 Answers   Mbarara University of Science and Technology,


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }

1 Answers  


Categories