Search Header Logo

Pointers in C

Authored by K.vinay kumar

Computers

University

Used 3+ times

Pointers in C
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int *p; p++; adds how many bytes to the p in a 32 bit machine?

2

4

8

16

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Among & and * which has the higher precedence

*

&

same precedence to both

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x=4, y=7; int *p1, *p2, p1=&x, p2=&y; what is the value of *p1 +* p2?

7

3

47

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A pointer to void can be converted into

float

int

char

all

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

assume ptr is pointer to double dimensional array A,then*(ptr+i+j gives

address of a[i][j]

value of A[i][j]

points to a[i][j]

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

with the statements char *str; str="hello"; which is allowed?

printf("%s", *str)

puts(str)

puts(*str)

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int *f1(); indicates the return type of function as

int pointer

int

address of int

Both a and c

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers