72.
What will be the output of the following C code?
#include <stdio.h>
void first()
{
    printf("Hello World");
}
void main()
{
    void *ptr() = first;
    ptr++
    ptr();
}

73.
An array of strings can be initialized by . . . . . . . .

74.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char a[1][5] = {"hello"};
    printf("%s", a[0]);
    return 0;
}

75.
What will be the output of the following C code?
#include <stdio.h>
void main()
{
    char *s = "hello";
    char *p = s;
    printf("%p\t%p", p, s);
}

76.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *str = "hello world";
    char strary[] = "hello world";
    printf("%d %d\n", strlen(str), strlen(strary));
    return 0;
}

77.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *str = "hello, world!!\n";
    char strc[] = "good morning\n";
    strcpy(strc, str);
    printf("%s\n", strc);
    return 0;
}

79.
What is argv[0] in command line arguments?

80.
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    void *p;
    int a[4] = {1, 2, 3, 4};
    p = &a[3];
    int *ptr = &a[2];
    int n = (int*)p - ptr;
    printf("%d\n", n);
}

Read More Section(Pointer)

Each Section contains maximum 100 MCQs question on Pointer. To get more questions visit other sections.