C Pointers

C Pointers

University

18 Qs

quiz-placeholder

Similar activities

Technotsav'23

Technotsav'23

University

19 Qs

ROUND 1

ROUND 1

University

20 Qs

Common errors in C programming

Common errors in C programming

University

15 Qs

PRA UAS - Dasar Dasar Pemrograman 2023

PRA UAS - Dasar Dasar Pemrograman 2023

University

20 Qs

C Programming Quiz

C Programming Quiz

University

19 Qs

C - Strings

C - Strings

University

20 Qs

IEEE_Round2

IEEE_Round2

University

13 Qs

C que que que

C que que que

University

23 Qs

C Pointers

C Pointers

Assessment

Quiz

Computers

University

Medium

Created by

sathi v

Used 79+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do the following declaration signify?


char *arr[10];

arr is a array of 10 character pointers.

arr is a array of function pointer.

arr is a array of characters.

arr is a pointer to array of characters.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C Program.?

int main()

{

char grade[] = {'A','B','C'};

printf("GRADE=%c, ", *grade);

printf("GRADE=%d", grade);

}

GRADE=some address of array, GRADE=A

GRADE=A, GRADE=some address of array

GRADE=A, GRADE=A

Compiler error

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the output of C program.?

int main()

{

char grade[] = {'A','B','C'};

printf("GRADE=%d, ", *grade);

printf("GRADE=%d", grade[0]);

}

A A

65 A

65 65

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of C program with arrays and pointers.?

int main()

{

int a[3] = {20,30,40};

printf("%d", *(a+1));

}

20

30

40

Compiler error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of following program?

# include <stdio.h>

void fun(int x)

{

x = 30;

}

int main()

{

int y = 20;

fun(y);

printf("%d", y);

return 0;

}

30

20

Compiler Error

Runtime Error

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Output of following program?

# include <stdio.h>

void fun(int *ptr)

{

*ptr = 30;

}

int main()

{

int y = 20;

fun(&y);

printf("%d", y);

return 0;

}

20

30

Compiler Error

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pointers refer to

Memory Address

Value in Memory

All the above

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?