You are on page 1of 1

Unit 3&4

Short Question

1) How to use break statement in C? Explain with some sort of code. 2018-
19(ODD), 2018-19(even), 2021-22(ODD)
2) Write down the output of the following.2017-18(even)
main()
{
int i = 1;
for (;;) {
printf(“% d”, i);
if (i = = 7)
break;
}
}
3) Write the syntax of continue statement. 2020-21(ODD)
4) Differentiate between while and do-while loop. 2018-19(even),2019-
20(odd),2020-21(ODD)
5) Write limitations of subscript operator in an array. 2021-22(ODD)
6) Find the output: 2021-22 (Even)
#include
int main()
{
int arr[1]={10};
printf("%d\n", 0[arr]);
return 0;
}
7) Explain the significance of null character in string. 2018-19(even)
8) Write the difference between structure and union. 2018-19(ODD), 2019-
20(odd),2020-21(ODD)
9) Explain the difference between function definition and function
declaration.2017-18(odd)
10) Difference between Structure and Array 2017-18(even)
11) Explain function prototype? Why is it required? 2017-18(even)
12) Define function and its type. 2021-22 (Even)
13) Differentiate recursion and iteration. 2018-19(even)
14) Explain the difference between function definition and function
declaration.2017-18(odd)

You might also like