Which operator is used to reach structure members if the variable is not a pointer?

C Programming Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
HASAN YIGIT
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
.
:
::
/
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be a structure member?
Another structure
Array
Function
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size (in bytes) of the structure given below (assume 32-bit processor)?
struct test
{
int k;
char c;
};
3
4
5
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The expression aptr->suit is equivalent to __________.
a. aptr.suit
b. *aptr.suit
c. (*aptr).suit
d. *aptr.(suit)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After running the following code script below, what will the last value of a and b be? int a = 7; int b = 17; int *c = &b; *c = 7;
a. 7 7
b. 7 17
c. 17 7
d. 17 17
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C program with Structure pointer in C?
#include <stdio.h>
int main()
{
struct books{
int pages;
char str[4];
}*ptr;
printf("%d",sizeof(ptr));
return 0;
}
4
6
8
10
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
SLG IPC144 Week 9

Quiz
•
Professional Development
10 questions
T&P Test on MCQs

Quiz
•
Professional Development
10 questions
C - Programming ( Output based - Loop )

Quiz
•
Professional Development
10 questions
C Code Master lvl 2 A

Quiz
•
Professional Development
10 questions
Day 4 C Programming Quiz

Quiz
•
Professional Development
10 questions
ตัวแปรและประเภทข้อมูลในภาษาC

Quiz
•
Professional Development
10 questions
GO4! Quiz Zeriuz Fundamental GO

Quiz
•
Professional Development
15 questions
BrightChamps Technical Round - C language

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