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 |
Difference between struct and class in terms of access modifier.
What is the full form of c++?
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
Can char be a number c++?
What is a Default constructor?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
What is ios :: in in c++?
What is c++ map?
Explain differences between new() and delete()?
What happens when the extern "c" char func (char*,waste) executes?
What is istream c++?
What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;