Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain one-definition rule (odr).

1171


How are virtual functions implemented in c++?

1119


What is the difference between struct and class?

1652


Which of the following is evaluated first: a) && b) || c) !

2418


What are the benefits of pointers?

1106


What it is and how it might be called (2 methods).

1260


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

1259


What is difference between c++ 11 and c++ 14?

1170


What are the types of pointer?

1142


Can you explicitly call a destructor on a local variable?

1070


What is a constructor in c++ with example?

1182


What are the various arithmetic operators in c++?

1178


What is type of 'this' pointer?

1117


Is multimap sorted c++?

1072


How do you print a string on the printer?

1081