Q.1.

What will be the output of the program?

#include<stdio.h>

int main()
{
    int i;
    char c;
    for(i=i<=i++)
    {
        scanf("%c", &c); /* given input is 'b' */
        ungetc(c, stdout);
        printf("%c", c);
        ungetc(c, stdin);
    }
    return}
Q.2.

Does there any function exist to convert the int or float to a string?

Q.3.

What will be the output of the program?

#include<stdio.h>
#include<stdlib.h>

int main()
{
    char *i = "55.555";
    int result1 =
    float result2 = 11.
    result1 = result1+atoi(i);
    result2 = result2+atof(i);
    printf("%d, %f", resultresult2);
    return
}
Q.4.

What is the purpose of fflush() function.

Q.5.

What will be the output of the program?

#include<stdio.h>
#include<string.h>

int main()
{
    char dest[] = {0};
    char src[] = "aaa";
    int i;
    if((i = memcmp(dest, src, 2))==
        printf("Got it");
    else
        printf("Missed");
    return
}
Q.6.

Can you use the fprintf() to display the output on the screen?

Q.7.

What will function gcvt() do?

Q.8.

What will the function randomize() do in Turbo C under DOS?

Q.9.

What will be the output of the program?

#include<stdio.h>

int main()
{
    int i;
    char c;
    for(i=i&lt=i++)
    {
        scanf("%c", &c); /* given input is 'a' */
        printf("%c", c);
        ungetc(c, stdin);
    }
    return
}