6. 

What will be the output of the program?

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

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

A. Missed
B. Got it
C. Error in memcmp statement
D. None of above

7. 

What will function gcvt() do?

A. Convert vector to integer value
B. Convert floating-point number to a string
C. Convert 2D array in to 1D array.
D. Covert multi Dimensional array to 1D array

8. 

What will be the output of the program?

#include<stdio.h>

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

A. aaaa
B. aaaaa
C. Garbage value.
D. Error in ungetc statement.