Trace the error : void main( ) { int *b, &a; *b = 20 printf(“%d, %d”, a, *b) }

PYQ UGC NET 2013

Trace the error :

void main( )
{
    int *b, &a;
    *b = 20
    printf(“%d, %d”, a, *b)
}
  1. A.

    No error

  2. B.

    Logical error

  3. C.

    Syntax error

  4. D.

    Semantic error

Attempted by 31 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…