Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

13.The value of x and y after the execution of following program would be: void func( int *a, int *b){ int tmp = *a; *a

13.The value of x and y after the execution of following program would be:

void func( int *a, int *b){

int tmp = *a;

*a = *b;

*b = tmp;

}

int x = 5, y = 10;

func(&x, &y);

  1. x = 5, y = 10
  2. x = 5, y = 5
  3. x = 10, y = 5
  4. x = 10, y = 10

14. What will be the following function return value when you are passing n = 5 into it.

int func(int n){

int i, j;

for(i=1, j=1; (i<=n); (j *= i), i++);

return j;

}

  1. 5
  2. 0
  3. 120
  4. 1

15. Advantage of using linked list compare to array are_____________

  1. They allow easy insertion of value and deleting it
  2. It is easy to work with linked list while using stack and heap
  3. They require less memory compared to array
  4. They can reduce access time.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago