Write output of the following programs. (1) void main() { printf(“%c”, ‘A’+32); } (2) void main() { int i = 5, j = 6; printf(“%d”, i++ * --j); } (3) void main() { printf(“C %c Programming”, ‘\n’); } 4) void main() { int i = 0; if (!(i=1)) printf(“TRUE”); else printf(“FALSE”); } (5) void main() { int i; for (i = 1;i < 0; i--) printf(“%d\n”, i); } (6) void main() { int a = 1, b = 2, c = 3, d; d = a += b -= c; printf(“d = %d\n”, d); } (7) void main() { int a = 1, b = 2, c = 3, d; d = a + b * c; printf(“d = %d\n”, d); }1
[7 marks]Define data type. Give two examples of data to store as integer. Explain integer data type with sign and size modifiers. What is the size and range of integer data type?
[7 marks]Answer the following questions. (1) What is the size of float data type in bytes? (2) Define constant. (3) Define compiler. (4) What is the use of variable? (5) How many keywords are available in C? (6) What is the range of signed char data type? (7) Which function is a standard input function in C?
[7 marks]What is program? Explain the structure of a C Program.
[7 marks]What is the difference between compiler and interpreter? What is the use of linker and loader? Explain the process of compiling and executing a C program.
[7 marks]Write a program to print the sum of the following series. 1 + 3 + 6 + 10 + … … + Nterms.
[7 marks]Differentiate switch statement Vs if else if ladder.
[7 marks]Write a program to print following pattern of numbers to print Nlines. For example if N = 5 than output should be :1
[7 marks]Differentiate between Entry controlled loop Vs Exit controlled loop.
[7 marks]What is array? Explain initialization of array and write a code to print elements of array.
[7 marks]What is string? Explain how the string is stored in memory? Explain strcmp() and strlen() functions.
[7 marks]Define storage class. List the storage classes in Cand explain any two of them with scope and extent.
[7 marks]Write a program using User Define Function isOddEven() that will return 1 if the argument number is odd and 0 if a given number is even. Write a main() program to test the program.
[7 marks]Define operator. List types of operators and explain ternary operator with syntax and example.
[7 marks]Explain implicit and explicit type conversion with example.
[7 marks]List and explain logical operators with syntax, truth table and example.
[7 marks]Explain printf() function with various format specifiers for different data types. What is the use of getch() function?
[7 marks]