What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / guest
it is used to print one integer data type value.
| Is This Answer Correct ? | 90 Yes | 46 No |
Answer / cooooooool bipul
Hey people
It will not give any syntax error more specifically.. it
will not give any type of error..
The output depends on the compiler u r using...
if it is GCC of linux then O/p== garbage value
there are compilers which will give the last integer value
assigned..
example...
i=30;
printf("%d");
will give ouput 30... but for Gcc it will be garbage value.
| Is This Answer Correct ? | 43 Yes | 8 No |
Answer / anand
it will print some value currently on top of the stack
| Is This Answer Correct ? | 20 Yes | 7 No |
What is oops in c++?
Difference between struct and class in terms of access modifier.
What is 'Copy Constructor' and when it is called?
How would you call C functions from C++ and vice versa?
How do I write a c++ program?
Does c++ have finally?
State the difference between pre and post increment/decrement operations.
Briefly describe a B+ tree. What is bulk loading in it?
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";
What is this weird colon-member (" : ") syntax in the constructor?
What is scope of a variable? (LOLZ)
Give a very good method to count the number of ones in a "n" (e.g. 32) bit number.