
pointers in C

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

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following pointer is Wild: int *p;, int *q=&a;, int *v=NULL;, void *g;
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 Wayground
17 questions
Java Basics

Flashcard
•
12th Grade
15 questions
Flashcard on Object Oriented Programming and Java

Flashcard
•
University
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
12 questions
Topic 1 C++ Programming

Flashcard
•
12th Grade
15 questions
Python Programming Flashcard

Flashcard
•
University
15 questions
Introduction to Java

Flashcard
•
University
10 questions
CMP128 Java Ch. 04 Loops Pt. 2

Flashcard
•
University
16 questions
Arrays in C++ - CS172- Exercise #2

Flashcard
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade