What will be the output of the following C code? #include<stdio.h> void main(){ int k = 7; int *p = &k; int **m = &p; printf("%d%d%d\n", k, *p…

What will be the output of the following C code?

#include<stdio.h>
void main(){
    int k = 7;
    int *p = &k;
    int **m = &p;
    printf("%d%d%d\n", k, *p, **m);
    return 0;
}
  1. a) 5 5 5
  2. b) 5 5 junk value
  3. c) 7 7 7
  4. d) Compile-time error

From the BUET MSC (ICT) July 2021 – MCQ exam, question 46 of 57.

More from this paper