LogiQuest
Back to Functions
11

What will be the output of the program?

#include <stdio.h>
void change(int *p) { *p = *p * 2; }
int main(void) {
    int x = 7;
    change(&x);
    printf("%d\n", x);
    return 0;
}
Easy

Discussion (0)

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

Log in to join the discussion.