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.

Answers were Sorted based on User's Feedback



helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f a..

Answer / fazlur rahamn naik

Printf is nothing but to display the output on to the
screen.

Scanf is used to read data from the user/keyboard.

%d is a format used for integer.

%f is a fromat used for float.

Is This Answer Correct ?    13 Yes 1 No

helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f a..

Answer / guest

In c, to get and to print the reqired information we use
the function printf()
and the scanf() function is used for inputting the data int
the variables declared before.
and %d character is used to display the integer type
variables in the o/p
and the %f character is used to print the float type
variables int hte o/p.

Is This Answer Correct ?    5 Yes 0 No

helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f a..

Answer / 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

More C Interview Questions

Meaning of () in c

1 Answers  


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

0 Answers  


can we declare a variable in different scopes with different data types? answer in detail

3 Answers   TCS,


being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?

1 Answers   TCS,


Write a c program to demonstrate Type casting in c?

2 Answers  






Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

0 Answers  


find the minimum of three values inputted by the user

3 Answers  


list the no of files created when c source file is compiled

9 Answers   TCS,


How main function is called in c?

0 Answers  


What are volatile variables in c?

0 Answers  


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


write a program that finds the factorial of a number using recursion?

13 Answers   Infosys, TATA,


Categories