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
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What are pointers? What are stacks and queues?
what do the 'c' and 'v' in argc and argv stand for?
What are the different types of pointers used in c language?
What is break in c?
Can you write a programmer for FACTORIAL using recursion?
What is a ternary operator in c?
Explain spaghetti programming?
What is storage class?
what is the role you expect in software industry?
Write a program to reverse a given number in c language?
Is it possible to initialize a variable at the time it was declared?
What are two dimensional arrays alternatively called as?
Where static variables are stored in memory in c?
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.