What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / arnab kuamr mahapatra
it will print a garbage value
that means default value an integer
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashif ali
it will display only garbage value because
int a=12;
printf("%d");
output=12
| Is This Answer Correct ? | 8 Yes | 8 No |
Answer / saranya
IT will print a warning only. So the output will be some
garbage value.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / beloshe vinod
Output will depends on number of values(local variables)
pushed onto stack .Out of that top of stack will gets printed
e.g.
static int a=89;
int b=67;
printf("%d");
will result in :> 67
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / vijay kumar cet bikaner 1st y
the output of printf("%d") is 0 beacause machine dureng the
execution of program has no address in the memory location
then it goes to the starting point then it print out the
value 0 .....
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / vinod
It prints the value in the stack.That means the if there is
previous initialisation of values.If there are no
definitions of integer varaibles,it would display the
garbage value.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sonu
The Output is 0.rite now run and check answer. thats right
answer.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the different types of Storage classes?
what do you mean by volatile variable?
What you know about structures in C++?
0 Answers Agilent, ZS Associates,
What are static member functions?
How do you differentiate between overloading the prefix and postfix increments?
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
What is pure virtual function?
what is polymorphism?
Mention the ways in which parameterized can be invoked. Give an example of each.
How to declare a function pointer?
What is const pointer and const reference?
What does std mean in c++?