What is the output of printf("%d")?




Answers were Sorted based on User's Feedback



What is the output of printf("%d")?..

Answer / kesavan

It will print the garbage value.

Is This Answer Correct ?    81 Yes 28 No

What is the output of printf("%d")?..

Answer / guest

it is used to print one integer data type value.

Is This Answer Correct ?    84 Yes 45 No

What is the output of printf("%d")?..

Answer / cooooooool bipul

Hey people

It will not give any syntax error more specifically.. it
will not give any type of error..

The output depends on the compiler u r using...
if it is GCC of linux then O/p== garbage value
there are compilers which will give the last integer value
assigned..
example...
i=30;
printf("%d");

will give ouput 30... but for Gcc it will be garbage value.

Is This Answer Correct ?    43 Yes 8 No




What is the output of printf("%d")?..

Answer / vanitha

garbage value

Is This Answer Correct ?    24 Yes 11 No

What is the output of printf("%d")?..

Answer / anand

it will print some value currently on top of the stack

Is This Answer Correct ?    20 Yes 7 No

What is the output of printf("%d")?..

Answer / mohanraj

It will print a garbage value.

Is This Answer Correct ?    25 Yes 13 No

What is the output of printf("%d")?..

Answer / sid

it will give output "0"

Is This Answer Correct ?    48 Yes 42 No

What is the output of printf("%d")?..

Answer / sanjiv

It will give a garbage value. It is tested.

Is This Answer Correct ?    15 Yes 9 No

What is the output of printf("%d")?..

Answer / narendra

it will print 0

Is This Answer Correct ?    4 Yes 0 No

What is the output of printf("%d")?..

Answer / anzarudeen

garbage value

Is This Answer Correct ?    4 Yes 1 No

Post New Answer



More C++ General Interview Questions

Difference between shift left and shift right?

1 Answers   Symphony,


How can you quickly find the number of elements stored in a a) static array b) dynamic array ?

5 Answers   Lucent,


1.what is the difference between software & package &application.

1 Answers   Infosys,


What is "mutable" keyword?

2 Answers   Teradata, Infosys,


What is virtual constructor paradigm?

5 Answers   HCL, HP,






A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

0 Answers  


make a middle node of doubly linklist to the top of the list

1 Answers  


Implement strncpy

3 Answers  


Under what conditions is multiple inheritance not recommended?

1 Answers  


How to stop conversions among objects?

5 Answers   Symphony,


What is name mangling?

2 Answers  


what is data Abstraction? and give example

147 Answers   CMS, Infosys, Microsoft, Wipro, IBM, TCS, NIIT, HCL, American Express, Google, College School Exams Tests, Aaditya Info Solutions, Data Entry Operator, First Advantage, Mind Links, Pact, QBit Systems, WAYA, Oracle,






Categories