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

how to count no of words,characters,lines in a paragraph.

0 Answers  


Write a program for Overriding.

0 Answers  


what is the difference between static variable and register variable?

3 Answers  


What is C language Terminator?

15 Answers   TCS,


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  


What is c variable?

0 Answers  


difference of two no's with out using - operator

7 Answers  


Write a program to exchange two variaables without temp

9 Answers   Geometric Software,


Explain how do you print only part of a string?

0 Answers  


Write a program to generate the Fibinocci Series

0 Answers   TISL,


void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?

4 Answers   Groupon,


Please list all the unary and binary operators in C.

3 Answers  


Categories