helllo sir
give me some information of the basic information the
c as printf ,scanf , %d ,%f and why is the main use of
these.

Answer Posted / vignesh1988i

printf();
printf is an in built function which is used as a output
statement........
SYNTAX:
printf("format string ",<list of variables>);
whenever we want to display messages to the user at run time
as well as the output we use printf statement.....

scanf();
this is the input statement... whenever we want to perform
some task using a system we must give input to it... in C
this is done using scanf() function.....
SYNTAX:
scanf("format string",<&variables>);

FORMAT SPECIFERS:
%d is used to print only integer constant formatted output
%f is used to print only real constant numbers output
%c is used to print only a character constant output

these format specifers and all will be stored in the LOOK UP
table in the compailer... when these dosen't match wit that
table . it gives a error


thank you

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is else if ladder?

600


What is || operator and how does it function in a program?

616


What is const keyword in c?

729


Do character constants represent numerical values?

831


How old is c programming language?

563






What are structure types in C?

649


What is spark map function?

569


Define Array of pointers.

619


What is signed and unsigned?

627


How was c created?

581


How can you determine the maximum value that a numeric variable can hold?

620


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

600


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1550


What is the difference between union and structure in c?

560


What is meant by 'bit masking'?

868