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 is define c?

0 Answers  


What are the salient features of c languages?

0 Answers  


What is boolean in c?

0 Answers  


What does the characters “r” and “w” mean when writing programs that will make use of files?

0 Answers  


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

0 Answers   Wilco,






Can math operations be performed on a void pointer?

0 Answers  


Write a program for the following series? 1 121 12321 1234321 123454321 12345654321 1234567654321 123456787654321 12345678987654321 1234567890987654321 123456789010987654321 12345678901210987654321 1234567890123210987654321 .........1234321............ ..........123454321............ ..........12345654321............ 7 8 9 0 1 Pls............?

5 Answers  


Difference between MAC vs. IP Addressing

0 Answers  


differnce between do and do while

3 Answers   DOEACC,


What is pre-emptive data structure and explain it with example?

0 Answers  


Why we use conio h in c?

0 Answers  


what is the code for getting the output as * ** ***

5 Answers   Caritor,


Categories