C Programming

What do you mean by “local” “global” and “static” variables? Explain with examples.

Local variable : any variable which is declared within the function is called local variable. This type of variable can be accessed within the same number function only. Global Variable : any variable which is declared before main function is called global variable. This variable can be accessed from any member functions. Static Variable : […]

C Programming

C Programming Important Questions for the final exams.

What is looping? Write a program to calculate and display the multiplication table using nested loop. [2+8] Describe the “strca”, “strcpy”, “strle” and “strrev” string functions with examples. [10] Write a program to arrange the elements of an array in ascending order. [10] What is “fscanf” function? Write a program to display name, age and […]

C Programming

Write a program to read different names and addresses into the computer and sort them on the basis of names into alphabetical order.

Output Enter name: NiranjanEnter address: Janakpur Enter name: MahiEnter address: Jaleshword Enter name: AmitEnter address: India Enter name: RahulEnter address: Pokhara Enter name: ManiEnter address: Jaleshwor Enter name: BikasEnter address: Rampur Enter name: NavinEnter address: pokhriya Enter name: RasidEnter address: America Enter name: UnaiduEnter address: Usa Enter name: MantoriyaEnter address: Parsa Enter name: ManishEnter address: […]