Note 1

Take Note:

Take a note while surfing.

Note With Ink

Give your Note a Colorful Tag.

Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.

Think With Ink

Differ your Content by Color.

Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape

Note With Ink

Simple an Easy Way to take a note.

Easy to Access

Get the same in next visit.

Please wait...

C Programming :: Variables & Data Types

1. What will be output of the following "c" code?

int main()
float i, j;
scanf(%f %f, &i, &j);
printf(%.2f %.3f, i, j);
return 0;

What will be the output for the give input 12.342 and 123.4568

Answer: Option A

Explanation :

I see couple of issues with question.

1. there should be compliation issue with this statement - printf(%.2f %.3f, i, j);

I have tried to complie 

$ gcc -o q8 q8.c

q8.c: In function ‘main’:

q8.c:6:8: error: expected expression before ‘%’ token

  scanf(%f %f,

Post Your Answer Here:     

Reply     |    Rate This: +0 -0      |     Report     |     To Reading List

Report Error

Please Login First Click Here