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

Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1123


What are pointers? What are stacks and queues?

1157


what do the 'c' and 'v' in argc and argv stand for?

1176


What are the different types of pointers used in c language?

1052


What is break in c?

1051


Can you write a programmer for FACTORIAL using recursion?

1047


What is a ternary operator in c?

1127


Explain spaghetti programming?

1262


What is storage class?

1080


what is the role you expect in software industry?

2154


Write a program to reverse a given number in c language?

1120


Is it possible to initialize a variable at the time it was declared?

1221


What are two dimensional arrays alternatively called as?

1191


Where static variables are stored in memory in c?

1004


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2060