0% found this document useful (0 votes)
3 views

Unit3 4 Question

The document outlines key concepts in C programming, including loops (while, do..while, for), array types (one-dimensional and two-dimensional), string handling, and functions. It provides syntax, examples, and explanations of various programming constructs such as break and continue statements, function types, and variable scopes. Additionally, it includes tasks for searching arrays and using string functions.

Uploaded by

nidhaaalshalseer
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Unit3 4 Question

The document outlines key concepts in C programming, including loops (while, do..while, for), array types (one-dimensional and two-dimensional), string handling, and functions. It provides syntax, examples, and explanations of various programming constructs such as break and continue statements, function types, and variable scopes. Additionally, it includes tasks for searching arrays and using string functions.

Uploaded by

nidhaaalshalseer
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

UNIT-3

1. Explain while loop with syntax and example.


2. Explain do..while loop with syntax and example
3. Explain for loop with syntax and example.
4. Differentiate break and continue statements.
5. Differentiate entry-controlled and exit-controlled loops.
6. Explain one-dimensional array with the help of suitable code example .
7. Explain two-dimensional array with the help of suitable code example
8. Explain the different ways available for the initialization of string variable
9. Write a program to search for an element in an integer array.
10. Explain with example how to declare, initialize and use strings in C.
11. List and explain any four-string handling functions available in C
12. Mention suitable string functions to do the following:
a. To find length of the string
b. To copy one string to another string
c. To add two strings
d. To reverse given string.

UNIT-2
1. Explain with example how to declare, define and call a function in C
2. Explain with example function with no arguments and no return values
3. Explain with example function with arguments and no return value
4. Explain with example function with no arguments but a return value
5. Explain with example functions with arguments and a return value
6. What are the actual and formal arguments?
7. What is a recursive function explain with example?
8. Write recursive function to calculate factorial of a given number.
9. Write a note on automatic variable.
10. Write a note on external variable.
11. Write a note on static variable.

You might also like