StudyDunes
Toggle navigation
Home
Online Training
Online Course
Online Classes
Quiz
Topics
Jobs
Helping Hands
Codelabs
Login
Join Free
What will be output if you will compile and execute the following c code?
struct
marks
{
int
p
:3;
int
c
:3;
int
m
:2;
};
void
main
(){
struct
marks
s={2,-6,5};
printf(
"%d %d %d"
,s.
p
,s.
c
,s.
m
);
}
2 -6 5
2 -6 1
2 2 1
Compiler error
Stop Quiz
×
C Test-3 ( Student )
Your Photo:
*
(2MB Max)
Video stream not available.
Take Selfie
Take My photo
First Name
Last Name
Email
Mobile number:
*
After submitting the form, please check your email to see the result.