Home / General Knowledge / Testing sawaal :: Discussion

Discussion :: Testing sawaal

  1. What would be the output of the following program ?

    main()

    {

         const int x = 5; 

          int *ptrx;

          ptrx = &x;

          *ptr = 10;

           printf ("%d", x);

    }

  2. A.
    5
    B.
    10
    C.
    Error
    D.
    Garbage value

    View Answer

    Workspace

    Answer : Option B

    Explanation :



Be The First To Comment