What is the base address of a one-dimensional array in C?

14/12/2024 - Array

Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Dr.S.Vidhya KGCAS
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Address of the first element
Address of the last element
Address of the middle element
Address of the array size
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element of the array int arr[5] = {10, 20, 30, 40, 50}; using a pointer ptr initialized as int *ptr = arr;?
ptr[3]
*(arr + 3)
*(ptr + 2)
arr[3]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
#include <stdio.h>
int main() {
int arr[3] = {100, 200, 300};
int ptr = arr; printf("%d", (ptr + 1));
return 0; }
100
200
300
error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare an array of integer pointers in C?
int *arr[5];
int arr*[5];
int (*arr)[5];
int arr[5]*;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If int *arr[3] is an array of integer pointers and each pointer points to an integer, how do you access the integer pointed to by the second pointer?
arr[1]
*arr[1]
&arr[1]
**arr[1]
Similar Resources on Quizizz
10 questions
[FE] Ice Breaking - JavaScript Control Flow

Quiz
•
Professional Development
10 questions
Ôn Tập Cấu Trúc Dữ Liệu Trong Java

Quiz
•
Professional Development
10 questions
Java Collections

Quiz
•
Professional Development
10 questions
Quiz on Arrays in C++

Quiz
•
Professional Development
10 questions
VEX Data Types 2

Quiz
•
Professional Development
10 questions
ML 2

Quiz
•
Professional Development
10 questions
VEX Global Variables and Channels 2

Quiz
•
Professional Development
10 questions
SHS Faculty Library Orientation SY 24-25

Quiz
•
Professional Development
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade