printf("%d",(printf("Hello")); What it returns?
Answers were Sorted based on User's Feedback
Answer / aju.b
printf("%d",(printf("Hello")));
Result is Hello5
| Is This Answer Correct ? | 175 Yes | 15 No |
Answer / vikas pawar
printf("%d",(printf("Hello"));
Result is Hello5
Inner printf prints Hello and outer printf gives length of
string i.e. 5
| Is This Answer Correct ? | 69 Yes | 8 No |
Answer / srinivasa. p
Hello5
Printf() return number character print on STD::out
| Is This Answer Correct ? | 30 Yes | 10 No |
Answer / anil kumar
Result is Hello5
Inner printf prints Hello and outer printf gives length of
string i.e. 5
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / amit shrivastava
it will show hello5
hello from the inner printf and 5 value return by the outer
printf function,as printf return int value of the string
and in the example there is 5 wrds so the lenght is 5 which
it return.
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / varun
error bcz 1 bracket is missing.
if corected
output will b
Hello5
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / anupam sen
printf function returns the number of character it prints
so output:Hello5
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / vivek_akathara
if the statement is as shown above then it will show an
error due to incomplete parentheses(there are 3 opening and
2 closing)
once that is corrected then you will get the output as
hello5 for the reasons explained above.
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / dally
It will print hello with length of 5.Because return value of
printf is length of that string.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / dinesh gupta
error
bcos one bracket is missing
if make correction
then out put is ........ hello5
reason..inner statement print hello and as wellas returns the lenth of the string to outer print statement,which give 5
| Is This Answer Correct ? | 2 Yes | 0 No |
What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?
Explain what is the difference between null and nul?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
Illustrate it summing the series 2+4+6+......to n terms using (i) while loop (ii) do-while loop
What is c variable?
What is array in C
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
hi send me sample aptitude papers of cts?
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
Why is sizeof () an operator and not a function?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
Write a function that will take in a phone number and output all possible alphabetical combinations