How to receive strings with spaces in scanf()

Answer Posted / karthik

using the function
gets(variable)

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c compiled or interpreted?

877


What is a substring in c?

781


What is function prototype?

776


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1047


What is abstract data structure in c?

750


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5689


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

1730


What is the main difference between calloc () and malloc ()?

818


What is call by reference in functions?

869


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

942


What is difference between structure and union with example?

802


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1787


Explain what does the function toupper() do?

819


Are comments included during the compilation stage and placed in the EXE file as well?

865


Are negative numbers true in c?

772