What is the output in a 32 bit machine with 32 bit compiler ? C#include…

ISRO Scientist/Engineer SC 2020

What is the output in a 32 bit machine with 32 bit compiler ?

C
#include <stdio.h>

rer(int **ptr2, int **ptr1)
 {
  int* ii;
  ii = *ptr2;
  *ptr2 = *ptr1;
  *ptr1 = ii;
  **ptr1 *= **ptr2;
  **ptr2 += **ptr1;
 }
void main( )
 {
   int var1 = 5, var2 = 10;
   int *ptr1 = &var1, *ptr2 = &var2;
   rer(&ptr1, &ptr2);
   printf(“%d %d “, var2, var1);
 } 
  1. A.

    60 70

  2. B.

    50 50

  3. C.

    50 60

  4. D.

    60 50

Attempted by 497 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…