Theory Questions (3 Marks)
Theory Questions (3 Marks)
3. What is the importance of precedence and associativity? Write the table for operator precedence.
6. What is a flowchart? Draw the flowchart to check whether a given number is positive or negative.
9. What are the differences between compiled and interpreted languages? Give examples for each.
4. Explain the different ways in which you can declare and initialize a single-dimensional array.
5. Write a C program to read a sentence through the keyboard and display the count of white
6. Write a C program to find the length of a string without using string handling functions.
7. Write a C program to check whether a string is a palindrome or not without using string handling
functions.
8. Write a C program to concatenate two strings without using built-in string functions.
2. With examples, show how: (i) An array is passed as an argument to a function. (ii) Individual
elements of an array are passed as arguments to a function.
3. What is recursion? Write a C program to display the Fibonacci series using a recursive function.
6. Write a C program to find the sum and average of an array of integers using user-defined
functions.
8. Declare a structure named 'Student' and write a program in C to find the average mark using an
array of structures.
1. Differentiate between the address operator (&) and indirection (*) operator.
4. What is meant by the scale factor of a pointer variable? Explain using examples.