Question: QUESTION FIVE a ) Identify any two types of functions in C ? b ) What do you understand by the term lifetime of a

QUESTION FIVE
a) Identify any two types of functions in C?
b) What do you understand by the term lifetime of a variable?
c) What are comments in C programming?
d) Explain the 2 types of comments in C?
e) How much should a programmer comment in his/her code?
f) Why are comments good in programming?
g) What is the output of the following code?
#include
int main()
{ int var =2;
switch (var){
case 1:
printf("Case 1 is executed.
");
break;
case 2:
printf("Case 2 is executed.
");
break;
case 3:
printf("Case 3 is executed.");
break;
case 4:
printf("Case 4 is executed.");
break;
default:
printf("yes");
break; }
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!