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

what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


1,1,5,17,61,217,?,?.

3 Answers   Apple,


what is the difference between declaration ,defenetion and initialization of a variable?

7 Answers   LG Soft,


Whats s or c mean?

0 Answers  


Difference between linking and loading?

0 Answers  


what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above

3 Answers   Accenture, Infosys, Wipro,


array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}

12 Answers   Google, Motorola,


how should functions be apportioned among source files?

0 Answers  


Write any data structure program (stack implementation)

1 Answers   HTC,


What do you mean by scope of a variable in c?

0 Answers  


What is scanf () in c?

0 Answers  


Write a program to find given number is even or odd without using any control statement.

2 Answers  


Categories