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 |
What is class invariant?
What you know about structures in C++?
0 Answers Agilent, ZS Associates,
How can a struct in c++ differs from a struct in c?
How would you find out if a linked-list is a cycle or not?
What is std namespace in c++?
Describe friend function & its advantages.
What is ctime c++?
Who created c++?
Do you know about latest advancements in C++ ?
0 Answers Agilent, ZS Associates,
What do you mean by call by value and call by reference?
pls help.. paper bills.. 1000, 500, 100, 50, 20, 10, 5, 1.. create a program that will count all the paper bills in the number being input.. example: enter a number: 3886 there is/are: 3 ->1000 1 ->500 3 ->100 1 ->50 1 ->20 1 ->10 1 ->5 1 ->1 example2: enter a number: 728 there is/are: 0 ->1000 1 ->500 2 ->100 0 ->50 1 ->20 0 ->10 1 ->5 3 ->1
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL