
pointers in C

Quiz
•
Computers
•
University
•
Hard
sathi v
Used 14+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following pointer is Wild
int *p;
int *q=&a;
int *v=NULL;
void *g;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main drawback of pointers
Complexity to mange pointers
Difficult to write program
They are not safe
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Code:
#include <stdio.h>
int main()
{
int *p;
int a=10;
p=&a;
*p=34;
printf("%d,%d",a,*p);
return 0;
}
34,34
10,10
10,34
34,10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
#include <stdio.h>
int main()
{
void *z;
float s=1.2;
z=&s;
printf("%f",*z);
return 0;
}
Compile time error
1.20000
1.2
Run time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
#include <stdio.h>
int main()
{
int *p;
int a=20;
p=&a;
int **q;
**q=100;
q=&p;
*p=50;
printf("%d,%d,%d",**q,a,*p);
return 0;
}
50,50,50
20,20,50
100,50,20
100,20,50
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet:
int a=45,b=67;
int *s,*q;
s=&a;q=&b;
printf("%d",s+q);
Compile time error
112
Garbage value
0
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following operators are not used with pointers
*
/
%
-
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz

Quiz
•
University
16 questions
C-Extended

Quiz
•
University
25 questions
Quiz 1 Review - CS125

Quiz
•
University
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
15 questions
C++ data types

Quiz
•
University
15 questions
CPA - PROGRAMMING ESSENTIALS IN C++ (CISCO)

Quiz
•
University
20 questions
C - Structures

Quiz
•
University
20 questions
DSA quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University