Which of the following pointer is Wild

Pointers & Strings in C

Quiz
•
Computers
•
Professional Development
•
Hard
SOBHANBABU SOBHANBABU
Used 65+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
45 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
1 min • 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
1 min • 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
45 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 Quizizz
16 questions
Think it through

Quiz
•
University - Professi...
20 questions
Data Type

Quiz
•
University - Professi...
21 questions
Java Quiz on Module 1 & 2

Quiz
•
Professional Development
17 questions
SQL - parte 1

Quiz
•
Professional Development
20 questions
Array Data Structure Quiz for Beginners

Quiz
•
Professional Development
16 questions
UC_TM02_C Programming Basics

Quiz
•
University - Professi...
20 questions
Operators in C language

Quiz
•
Professional Development
20 questions
แบบทดสอบภาษาซี

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade