Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int *p = (int *)2;
    int *q = (int *)3;
    printf("%d", p + q);
}

A. 2

B. 3

C. 5

D. Compile time error

Answer: Option D


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer