LogiQuest
Back to Pointers
9

What will be the output of the program?

#include <stdio.h>

int main(void) {
    int a = 3, b = 4;
    int *p = &a;
    p = &b;
    *p = 10;
    printf("%d %d\n", a, b);
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.