Examveda

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

A. 102

B. 104

C. 108

D. 116

Answer: Option D


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer