Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1.What is the output of the below code snippet? char course[ ] = {'M,A,T,H,S,0}; printf(%c,course[2]); a. T b. H c. M d. A 2.What is
1.What is the output of the below code snippet? char course[ ] = {'M,A,T,H,S,\0}; printf(%c,course[2]);
a.
T
b.
H
c.
M
d.
A
2.What is the value in G as per the following given statements ? char fn[ ]=GRAPHICS; G=strlen( fn );
a.
0
b.
2
c.
6
d.
8
3.What is the value in sz as per the following given statements ? char nm[]=MICHAEL; sz=strlen(nm);
a.
6
b.
0
c.
7
d.
4
4.What is the value in string st1[] of the below code snippet? char st1 [] =SultanateOf;char st2 [] =Oman;strcpy(st1,st2);
a.
Oman
b.
OmanSultanateOf
c.
SultanateOfOman
d.
SultanateOf
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started