11. 

What will be the output of the program ?

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

int main()
{
    static char str1[] = "dills";
    static char str2[20];
    static char str3[] = "Daffo";
    int i;
    i = strcmp(strcat(str3, strcpy(str2, str1)), "Daffodills");
    printf("%d\n", i);
    return 0;
}

A. 0
B. 1
C. 2
D. 4

12. 

What will be the output of the program ?

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

int main()
{
    static char s[] = "Hello!";
    printf("%d\n", *(s+strlen(s)));
    return 0;
}

A. 8
B. 0
C. 16
D. Error

13. 

What will be the output of the program ?

#include<stdio.h>

int main()
{
    static char s[25] = "The cocaine man";
    int i=0;
    char ch;
    ch = s[++i];
    printf("%c", ch);
    ch = s[i++];
    printf("%c", ch);
    ch = i++[s];
    printf("%c", ch);
    ch = ++i[s];
    printf("%c", ch);
    return 0;
}

A. hhe!
B. he c
C. The c
D. Hhec

14. 

What will be the output of the program in 16-bit platform (Turbo C under DOS) ?

#include<stdio.h>

int main()
{
    printf("%d, %d, %d", sizeof(3.0f), sizeof('3'), sizeof(3.0));
    return 0;
}

A. 8, 1, 4
B. 4, 2, 8
C. 4, 2, 4
D. 10, 3, 4

15. 

What will be the output of the program ?

#include<stdio.h>

int main()
{
    int i;
    char a[] = "\0";
    if(printf("%s", a))
        printf("The string is empty\n");
    else
        printf("The string is not empty\n");
    return 0;
}

A. The string is empty
B. The string is not empty
C. No output
D. 0