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

Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,


void main() {int a[5],i,b=16; for(i=0;i<5;i++) a[i]=2*i; f(a,5,b); for(i=0;i<5;i++) printf("\n %d",a[i]); printf("\n %d",b); } f(int *x,int n,int y) { int i; for(i=0;i<n;i++) *(x+i)+=2; y=y+2; }wat r the errors in the prg.and improvise the prg to get o/p.?

2 Answers   TCS,


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  


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


Why main function is special give two reasons?

0 Answers  






If errno contains a nonzero number, is there an error?

0 Answers  


what is the other ways to find a logic to print whether a number is an even or odd wit out using % symbol??????? i know three different ways to print it. so i need any other different logic>>>>>

5 Answers   TCS,


Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā€œ%cā€, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.

1 Answers   BladeLogic, Infosys,


Can we use visual studio for c?

0 Answers  


If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.

12 Answers   Google,


How can you increase the size of a dynamically allocated array?

0 Answers   TISL,


What is pivot in c?

0 Answers  


Categories