Do as directed. 1. What is the output: 01 int main() { printf(“%d”, ‘A’); return 0; } 2. What is the output: int main ( ) { int no = 5; printf ( “ %d %d %d”, no++, no, ++no); return 0; } 3. What is the output: int main() { int a=5; i=!a >10; printf(“i=%d”,i); return 0; }
[2 marks]Do as Directed. 1. “\n” is used for ______ and “\0” is used for ________. 2. Size of float in ______ bytes. 3. Differentiate between “=” and “==”. 4. Define ternary operator. 5. The associativity of && is _____ to ______. 6. Array allocates space automatically. (T/F) 7. ______ is used for writing multiline comment.
[7 marks]What are tokens? Explain different classes of tokens.
[7 marks]What are data types? Explain basic data types in detail.
[7 marks]Explain four storage classes of Clanguage. Page 1 of
[2 marks]Write a program in C Language to find sum of digits of any given number.
[7 marks]Explain following functions. (1) strcmp( ) (2) strlen( ) (3) strrev( ) (4) strcat( ) (5) strcpy( ).
[7 marks]Write a program to display the following output using C Language. A B C D E F G H I J
[7 marks]What are operators? State different types of operators and explain prefix, postfix operator and relational operator.
[7 marks]What is a typecasting? Write its significance and purpose with suitable example(s).
[7 marks]Difference between: 1. Entry control and exit control 2. Break and continue.
[7 marks]Write a program in C Language to accept 10 numbers from the user in an array and display their average.
[7 marks]What is the use of switch case, explain with proper example. Also explain the use of default.
[7 marks]Explain different format specifier in printf (), along with few examples.
[7 marks]What is function prototype, function definition and function call? – explain with an example.
[7 marks]Explain different decision-making statements of Cwith examples.
[7 marks]What do you mean by scope and lifetime of a variable? Explain the types of scope. Page 2 of
[2 marks]