Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void fun(int m, int n)
    {
    int temp = m;
    m = n;
    n = temp;
    }
    void main()
    {
    int s = 16, t = 15;
    fun(s, t);
    printf("%d %d\n", s, t);
    }
    1. 16 16
    2. 15 15
    3. 15 16
    4. 16 15
    5. Compilation Error
Correct Option: D

16 15



Your comments will be displayed only after manual approval.