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 is variable declaration and definition in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is a 'null pointer assignment' error?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
i want to know the procedure of qualcomm for getting a job through offcampus
write a program for the normal snake games find in most of the mobiles.
How can I send mail from within a c program?
What is difference between function overloading and operator overloading?
What is sizeof return in c?
What is the meaning of && in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
How do you use a 'Local Block'?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What is the scope of static variable in c?
Explain the difference between the local variable and global variable in c?