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
How do you use a 'Local Block'?
What is difference between union and structure in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is data structure in c programming?
how we can make 3d venturing graphics on outer interface
What is hashing in c language?
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.
What is the usage of the pointer in c?
Are there any problems with performing mathematical operations on different variable types?
What are the 3 types of structures?
What is the difference between %d and %i?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Explain what are preprocessor directives?
Why isnt any of this standardized in c?
Where register variables are stored in c?