Home » C Programming » Data Types » Question
  1. Which of the following is the correct output for the program given below?
    #include<stdio.h>
    int main ( )
    {
    float *p;
    printf ( "%d\n " , sizeof ( p ) );
    return 0 ;
    }
    1. 2 in 16-bit compiler like TC/TC++, 4 in 32-bit compiler like Visual studio or gcc
    2. 4 in 16-bit compiler like TC/TC++, 2 in 32-bit compiler like Visual Studio or gcc
    3. 4 in 16-bit compiler like TC/TC++, 4 in 32-bit compiler like Visual Studio or gcc
    4. 2 in 16-bit compiler like TC/TC++, 2 in 32-bit compiler like Visual studio or gcc
Correct Option: A

2 in 16-bit compiler like TC/TC++, 4 in 32-bit compiler like Visual studio or gcc



Your comments will be displayed only after manual approval.