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.

C Programming :: Input / Output

Home > C Programming > Input / Output > General Questions

1. fputs function is used to

Answer: Requires a file pointer

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

2. The function fprintf is used in a program

Answer: when the output is to be printed on to a file

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

3. What is the following C Program doing?

void main ()
{
char line [80];
gets (line);
puts (line);
}

Answer: reads and prints lines composed of characters

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

4. if i,j,k are integers, the scanf function to enter i,j,k such that i is decimal,j is octal and k is hexadecimal would be

Answer: scanf("%d %o %x",&i, &j, &k)

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

5. What would be the output of the following C program if input to the program is 'e'?

void main ()
{
char lower, upper;
lower = getchar();
upper= toupper (lower);
putchar (upper);
}

Answer: E

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!