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...

will the program compile? int i; scanf(ā€œ%dā€,i); printf(ā€œ%dā€,i);

Answer Posted / vignesh1988i

surely it will compile and run , no problem will be in
it.... but the problem lies in ur scanf statement , there
what ever u have typed as an input number , that number
wont be stored in 'i' since you have left ur '&'(reference
operator) , so ur compiler dosen't know where to store ur
input value....... so it will print some garbage value in
the printf().........


thank u

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different properties of variable number of arguments?

1106


Why & is used in scanf in c?

1052


Is file a keyword in c?

890


What is static memory allocation?

1105


What oops means?

935


Why header files are used?

1067


Write a function that will take in a phone number and output all possible alphabetical combinations

1001


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1109


What is a header file?

1033


If null and 0 are equivalent as null pointer constants, which should I use?

1121


What is the heap?

1157


Explain what are the standard predefined macros?

1074


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1050


What is modeling?

1003


What is pointer to pointer in c language?

1056