What is the output of printf("%d")?
Answers were Sorted based on User's Feedback
Answer / apoorv
it will be give u garbage value....u can't be sure for d
value....
its depend on d complier which value he read recently...
and it will be a garbage....according to d programer...bcoz
he don,t knw which value has been recentyly read by d
compiler...!!
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shakti singh khinchi
It will print garbage value & gives warning on compilation
like "too few arguments for format".
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vaisakh.r
printf("%d") will printf some garbage value since there is no varible specified in it.so compiler check the argument stack check offset depending on the format specifier print whats on that location, since we can't sure about that value say it will print some garbage value
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX
Specify different types of decision control statements?
What is design pattern?
What is meant by reference variable in C++?
Is turbo c++ free?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
How can you tell what shell you are running on unix system?
What gives the current position of the put pointer?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3