0% found this document useful (0 votes)
6 views1 page

Important C Programming MCQ (Multiple Choice Questions)

The document presents important multiple-choice questions (MCQs) related to C programming, including a code snippet that demonstrates the use of structures. It highlights the output of the code, which correctly prints the age and roll number of a student. Additionally, it offers resources for creating personalized study plans to help users prepare for their desired roles in companies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Important C Programming MCQ (Multiple Choice Questions)

The document presents important multiple-choice questions (MCQs) related to C programming, including a code snippet that demonstrates the use of structures. It highlights the output of the code, which correctly prints the age and roll number of a student. Additionally, it offers resources for creating personalized study plans to help users prepare for their desired roles in companies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1/12/25, 10:03 PM Important C Programming MCQ (Multiple Choice Questions)

Online Free New


100 Practice Resources  Contests   Events Sca
IDE Mock
Hide
Wrong Answer
Explanation: The function basically calculates the sum of ASCII values of the characters of the
string.

Create a free personalised study plan Create a FREE custom study plan
Get into your dream companies with expert guidance
Get into your dream companies with expert..
Real-Life Problems
Prep for Target Roles
Custom Plan Duration
Flexible Plans
Create My Plan
2.
What will be the output of the following code snippet?

#include <stdio.h>
struct School {
int age, rollNo;
};
void solve() {
struct School sc;
sc.age = 19;
sc.rollNo = 82;
printf("%d %d", sc.age, sc.rollNo);
}
int main() {
solve();
return 0;
}

19 82

Compilation Error
https://www.interviewbit.com/c-programming-mcq/?utm_source=chatgpt.com 1/1

You might also like