will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);

Answer Posted / girish

it gives the garbage value of that perticular element.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashing in c?

628


How can I recover the file name given an open stream or file descriptor?

583


What is indirection in c?

612


Can we use visual studio for c?

536


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

1492






Which of these functions is safer to use : fgets(), gets()? Why?

625


Explain what will the preprocessor do for a program?

589


Explain #pragma statements.

595


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3237


Write a factorial program using C.

631


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1832


What is the difference between c &c++?

635


What is scope and lifetime of a variable in c?

564


What is main function in c?

537


What is the purpose of clrscr () printf () and getch ()?

587