FIND THE OUTPUT IF THE INPUT IS 5 5.75
void main()
{
int i=1;
float f=2.25;
scanf("%d%f",&i,&f);
printf("%d %f",,i,f);
}
ANSWER IS 5 AND 2.25 WHY?

Answer Posted / hari.11

hey,
if we give input as 5 5.75
output would be: 5 5.750000

for further queries and discussions, visit..

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use a 'Local Block'?

728


What is difference between union and structure in c?

584


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2615


What is data structure in c programming?

576


how we can make 3d venturing graphics on outer interface

4016






What is hashing in c language?

618


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1770


What is the usage of the pointer in c?

608


Are there any problems with performing mathematical operations on different variable types?

577


What are the 3 types of structures?

574


What is the difference between %d and %i?

598


List the difference between a 'copy constructor' and a 'assignment operator' in C?

643


Explain what are preprocessor directives?

632


Why isnt any of this standardized in c?

641


Where register variables are stored in c?

554