Q:

what will be the output of the following program

0

what will be the output of the following program

#include <stdio.h>
    int main()
    {
        int ary[4] = {1, 2, 3, 4};
        int p[4];
        p = ary;
        printf("%d\n", p[1]);
    }

  1. Compile time error
  2. 1
  3. 2
  4. Run time error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Compile time error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
what will be the output of the following program?... >>
<< What are the different ways to initialize an array...