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 are the different data types present in C++?
Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.
How much do c++ programmers make?
What are the types of array in c++?
What is c++ flowchart?
What is a null object in c++?
What are mutator methods in c++?
How to declare an array of pointers to integer?
explain the reference variable in c++?
What are the two types of comments?
what is an array
What are raw sockets, where they are efficient?