Pointer MCQs

253 questionsC-ProgramPage 29 of 29

Practice free Pointer multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 253 questions — no login required.

Question 253easy
What will be the output of the following C code?
#include <stdio.h>
void m(int p, int q)
{
    int temp = p;
    p = q;
    q = temp;
}
void main()
{
    int a = 6, b = 5;
    m(a, b);
    printf("%d %d\n", a, b);
}
Pointer MCQs with Answers & Solutions — C-Program | GrabStudy