C program to count the number of lines in a file


Question 1)a) What do you mean by switch case statement? Describe.

b) Write a program in ‘C’ language to find the length of string without using string functions.

c) What are storages classes? Describe.

d) What do you mean by recursion? How it is different from iteration? Describe.

e) Write a program in ‘C’ language to swap three variables without using fourth variable.

f) What do you mean by structure? How it is different from union?

g) What do you mean by pointer? What are its advantages?

h) What is sorting? Describe the concept of bubble sort.

i) What is linear search? How it is different from binary search.

j) Write a ‘C’ language program to generate the following Fibonacci series.

0 1 1 2 3
5 8 13 21 34

Question 2) What is data type and constant? Describe various types of data types and constants available in ‘C’ language.

Question 3) What is operator? Describe various types of operators available in ‘C’ language by taking appropriate examples.

Question 4)a) What are jumping statements? Describe the difference between break and continue statements.

b) What is nested if statement? Write a program to determine greatest number out of three number by using nested if statement.

Question 5) What is an array? How it is different from string. Write a ‘C’ language program to multiply two matrices.

Question 6) What is function and function prototyping? Describe the various methods of passing parameters to a function by taking appropriate ‘C’ language program.

Question 7) What are different file handling functions in ‘C’ language? Write a ‘C’ language program to count the number of lines in a file.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: C program to count the number of lines in a file
Reference No:- TGS08237

Expected delivery within 24 Hours