wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Infinite recursion

Total questions: 3

Worksheet time: 2mins

Name
Class
Date
1.

What will be the output of the following code?

a)

3

b)

6

c)

0

d)

Infinite recursion

2.

How are reference parameters declared in a function?

a)

int &x

b)

ref int x

c)

int *x

d)

&int x

3.

What will be the output of the following code?

a)

3

b)

2

c)

54

d)

767