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
Explain how do you determine a file’s attributes?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is the purpose of main( ) in c language?
What is an identifier?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
What is call by reference in functions?
string reverse using recursion
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is difference between union and structure in c?
Is register a keyword in c?
What are static variables in c?
How many keywords are there in c?
what value is returned to operating system after program execution?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)