Library Functions

Q1:
Point out the error in the following program.
#include<stdio.h>

int main()
{
    fprintf('AptitudeCrack');
    printf('%.ef', 2.0);
    return 0;
}

A Error: unknown value in printf() statement.

B Error: in fprintf() statement.

C No error and prints "AptitudeCrack"

D No error and prints "2.0"

ANS:A - Error: unknown value in printf() statement.

Declaration Syntax:
int fprintf (FILE *stream, const char *format [, argument, ...]);

Example:
fprintf(filestream, '%s %d %s', Name, Age, City);



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.