1. Question: What will be output if you will compile and execute the following c code?


    #include<stdio.h>
    int main(){
      goto abc;
      printf("main");
      return 0;
    }

    void dispaly(){
      abc:
        printf("display");
    }

    A
    main

    B
    display

    C
    maindisplay

    D
    displaymain

    E
    Compiler error

    Note: Not available
    1. Report
  2. Question: What will be output if you will compile and execute the following c code?


    #include<stdio.h>
    int main(){
      int a=sizeof(a);
      a=modify(a);
      printf("%d",a);
      return 0;
    }

    int modify(int x){
      int y=3;
      _AX=x+y;
      return;
    }

    A
    2

    B
    3

    C
    5

    D
    Garbage value

    E
    None

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd