Which of the following pointer is Wild: int *p;, int *q=&a;, int *v=NULL;, void *g;

pointers in C

Flashcard
•
Computers
•
University
•
Hard
Quizizz Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
int *p;
2.
FLASHCARD QUESTION
Front
What is the main drawback of pointers?
Back
Complexity to manage pointers
3.
FLASHCARD QUESTION
Front
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;
}
Back
34,34
4.
FLASHCARD QUESTION
Front
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;
}
Back
Compile time error
5.
FLASHCARD QUESTION
Front
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;
}
Back
50,50,50
6.
FLASHCARD QUESTION
Front
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);
Back
Compile time error
7.
FLASHCARD QUESTION
Front
What is the output of the following code:
int a[]={1,2,33,4,4,6}
int *p;
p=a;
*(p+2)=25;
printf("%d,%d",*(p+2),2[a]);
Back
25,25
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Fall Semester Exam Review (Units 1, 2)

Flashcard
•
12th Grade
15 questions
ARRAYLIST - JAVA

Flashcard
•
University
20 questions
Basic Programming Concepts in C++ Language

Flashcard
•
KG
16 questions
G12- Selection and Decision Making- Flash cards

Flashcard
•
12th Grade - University
15 questions
Programming in C

Flashcard
•
University
8 questions
Methods

Flashcard
•
University
12 questions
U2L3 #1 [Writing Functions]

Flashcard
•
12th Grade
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
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