Time Left - 15:00 mins

GATE CS 2022: Data Structure-2

Attempt now to get your rank among 325 students!

Question 1

If x is a one-dimensional array, then:

Question 2

Consider the following C program:

int main ()

{

int x = 20;

static int y = x;

if (x = = y)

printf (“Equal”);

else

printf (“Not Equal”);

return 0;

}

What will be the output for above C program?

Question 3

The following ‘C’ statement :
int * f [ ] ( );
declares:

Question 4

The equivalent prefix expression for the following infix expression (A+B)-(C+D*E)/F*G is

Question 5

Give the postfix expression for the following infix expression:

a*(b+c)/d-ef

Question 6

The Output of following code is-

int main()

{

int a = 5;

int *ptr ;

ptr = &a;

*ptr = *ptr * 3;

printf("%d", a);

return 0;

}

  • 325 attempts
  • 0 upvotes
  • 3 comments
Jul 1GATE & PSU CS

Posted by:

Priya UpadhyayPriya UpadhyayMember since Sep 2020
Priya Upadhyay
Share this quiz   |