Write a c program to illustrate use of data type enum. CSE January 12, 2026 #include <stdio.h> #include <string.h> // Example 1: Days of the week (default values: 0, 1, 2, ...) enum Days { SUNDAY, ... Continue Reading
Write a c program that opens an existing text file and copies it to a new text file with all lowercase letters changed to capital letters and all other characters unchanged. CSE January 12, 2026 #include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { FILE *sourceFile, *destFile; char sourceFi... Continue Reading
Write a C program to create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. CSE January 12, 2026 #include <stdio.h> #include <string.h> // Structure definition struct Student { int rollNo; char name[50]; char cla... Continue Reading
Write a program to demonstrate the call by value and the call by reference concepts in c. CSE January 12, 2026 #include <stdio.h> // Call by Value - receives copy of arguments void swapByValue(int a, int b) { int temp; printf("\nIn... Continue Reading
Write a c program to illustrate the use of storage classes. CSE January 12, 2026 #include <stdio.h> // Global variable (external storage class) int globalVar = 100; // Static global variable (file scope only) stati... Continue Reading