0% found this document useful (0 votes)
10 views2 pages

C.long Question

The document contains a series of questions related to the C programming language, covering topics such as command line arguments, header files, pointers, structures, function arguments, variable scope, memory allocation, file handling, recursion, and operators. Each question seeks to explain concepts with examples or to demonstrate programming tasks. The content is educational and aimed at enhancing understanding of C programming fundamentals.

Uploaded by

Sacrifice Do it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

C.long Question

The document contains a series of questions related to the C programming language, covering topics such as command line arguments, header files, pointers, structures, function arguments, variable scope, memory allocation, file handling, recursion, and operators. Each question seeks to explain concepts with examples or to demonstrate programming tasks. The content is educational and aimed at enhancing understanding of C programming fundamentals.

Uploaded by

Sacrifice Do it
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What are command line arguments of the main function?

Explain with a suitable


example.

2. What are header files? Are functions declared or defined in header files?

3. What is a pointer in C? What are the advantages of using pointers? Explain with
examples.

4. What is a structure? Explain structure within structure with an example.

5. What are the differences between form arguments and actual arguments of a
function Explain with an example.

6. What is scope & storage allocation of register, static and local variables? Explain with
Examples.

7. What are storage memory, default value, scope and life of Automatic and Register,
Static and External storage class?

8. What are the differences between formal arguments and actual arguments of a
function? Explain with an example.

9. What are the differences between malloc() and calloc() Explain with Examples.

10. What is an Enumeration? What is a structure? Explain with an Examples.

11. Why are files needed? How we open and close an existing file in C? Also discuss the
various modes to open a file.

12. Write a program to print the second largest number between 10 numbers.

13. Give the advantages of array using pointers. Write a program to access elements of
an array by using pointers.

14. Discuss the following:

(a) Pre-processor commands


(b) Difference between malloc() functions and calloc().
(c) Difference between function and macros.

15. What are the advantages and disadvantages of a recursive function? Write a
program to find the sum of first n numbers using recursion.

16. How we open and close an existing file in C? Also discuss the various modes to open
a file.

17. Write a program to check whether the number is prime or Armstrong with the help of
18. user defined functions.

19. Give the advantage of array using pointers. Write a program to access element of an
20. array by using pointers.
21. What is an operator? What are different types of operators? Discuss the various
operators available in C.

22. What do you mean by a recursion? Write a program to print a Fibonacci series using
recursion up to 1000 numbers.

You might also like