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 |
Is it possible to have a recursive inline function in c++?
Do you know what is overriding?
what is object?
What is doubly linked list in c++?
What is the C-style character string?
Explain class invariant.
What is null pointer and void pointer and what is their use?
Search for: what is pair in c++?
What is size of string in c++?
Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300â€Â,â€ÂBullCart : 10â€Â) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side
How do you master coding?
What is c++ best used for?