Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Why is c not oop?

0 Answers  


Give the rules for variable declaration?

0 Answers  


Do you know what is a programing language ?

0 Answers  


Why should I use standard library functions instead of writing my own?

0 Answers  


18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4

1 Answers  






number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 Answers  


What are the different types of linkage exist in c?

0 Answers  


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


What is the function of this pointer?

0 Answers   Agilent, ZS Associates,


Where define directive used?

0 Answers  


How to print "Hi World" without using semi colon?

6 Answers   Infosys,


How to reverse a linked list

1 Answers   Aricent, Fidelity, IBM, TCS,






Categories