printf("%d",(printf("Hello")); What it returns?

Answers were Sorted based on User's Feedback



printf("%d",(printf("Hello")); What it returns? ..

Answer / srinivasa. p

5

Printf() return number character print on STD::out

Is This Answer Correct ?    13 Yes 16 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / s.veena bhargavi

prinf execution starts from right to left so it will prints
hello &here printf is taken as a function, it returns int
value as len of srting is 5.it does'nt count /0

Is This Answer Correct ?    4 Yes 7 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / anonymous

an Error will occur....bcos the function call is missing in
main().

Is This Answer Correct ?    0 Yes 4 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / raks

5 , Hello

Is This Answer Correct ?    3 Yes 8 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / vignesh1988i

the printf fun() always writterns the numbeer of characters
...... so 5 is o/p

Is This Answer Correct ?    0 Yes 6 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / pavithra

error will occur because within a printf statement another
printf statement is present

Is This Answer Correct ?    3 Yes 15 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / srinivasa. p

int

Is This Answer Correct ?    0 Yes 18 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / bhavesh kashikar

072

Is This Answer Correct ?    1 Yes 19 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / srinivasa. p

1

Printf() return number character print on STD::out

Is This Answer Correct ?    4 Yes 23 No

printf("%d",(printf("Hello")); What it returns? ..

Answer / bhavesh kashikar

104

Is This Answer Correct ?    0 Yes 19 No

Post New Answer

More C Interview Questions

What are the functions to open and close the file in c language?

0 Answers  


What is difference between structure and union?

0 Answers  


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


What the advantages of using Unions?

0 Answers   TISL,


What is the purpose of ftell?

0 Answers  


Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


Why enum is used in c?

0 Answers  


Write a program using bitwise operators to invert even bits of a given number.

2 Answers  


What is the difference between array and pointer?

0 Answers  


Find occurence of a character in a sting.

3 Answers   TCS,


What is the difference between null pointer and wild pointer?

0 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


Categories