Pointers in C

Pointers in C

University

25 Qs

quiz-placeholder

Similar activities

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

Linux 3-4

Linux 3-4

University

20 Qs

2nd Class Test FEB 2021

2nd Class Test FEB 2021

University

25 Qs

Competitive Coding-I

Competitive Coding-I

University

20 Qs

Quiz on Air Pool 1 SH

Quiz on Air Pool 1 SH

University

21 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

PSC Quiz1

PSC Quiz1

University - Professional Development

20 Qs

Technical Quiz

Technical Quiz

University

20 Qs

Pointers in C

Pointers in C

Assessment

Quiz

Computers

University

Medium

Created by

K.vinay kumar

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?