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
What do you mean by scope of a variable in c?
What is include directive in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Is using exit() the same as using return?
Is boolean a datatype in c?
What are keywords c?
Write a program to reverse a given number in c?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Why do some versions of toupper act strangely if given an upper-case letter?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is the use of putchar function?
Differentiate between static and dynamic modeling.
Explain the use of keyword 'register' with respect to variables.
write a program to copy the string using switch case?