What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / vijay
it will print the recently assigned integer value.....
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / hardik jasani
void main()
{
printf("%d");
}
getch();
Output:0
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sathya
it is the integer in decimal form..
#include<stdio.h>
main()
{
int sum;
sum=6+3;
printf("%d\n",sum);
}
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / creed
When insufficent argumrnts r give 2 c compiler it give
arbitrary answers
in turbo c it gives o/p =0
in other compiler it trys 2 read values from last stack top
i.e garbage
some compiler can may even crash
Is This Answer Correct ? | 3 Yes | 7 No |
Answer / uma sankar pradhan
int a=30;
printf("%d");
the output is 30
Is This Answer Correct ? | 33 Yes | 38 No |
Answer / mousam sahu
it will give the statement missing error
bcoz printf must have the statment ilke ;
Is This Answer Correct ? | 2 Yes | 16 No |
Answer / mousam sahu
it will give an expression syntax error as printf must have
an expression like ;
Is This Answer Correct ? | 5 Yes | 22 No |
How is static data member similar to a global variable?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is the difference between a copy constructor and an overloaded assignment operator?
4 Answers Belzabar, Citrix, Microsoft, Wipro,
What is a pdb file?
Difference between Constructors and static constructors?
What problem does the namespace feature solve?
Define a constructor?
Can we define a constructor as virtual in c++?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
Define a pdb file.
List the advantages of inheritance.
What is the use of typedef?