July 6, 2021 in C and CPP
Write a program to find out whether a given number is Prime or not.
b) Write a program to find out whether a given number is Prime or not.
July 6, 2021 in C and CPP
b) Write a program to find out whether a given number is Prime or not.
July 6, 2021 in C and CPP
a) Write a C program to construct a linear linked list in C to store student records. The record contains roll no. and total marks. The program stops when a negative roll no. is entered.
July 6, 2021 in C and CPP
c) What is union data type? Define a union ‘u’ to hold a integer, float and character variable.
July 6, 2021 in C and CPP
b) Write a ‘C’ program to create a file of integers. The file name is given by the user. The second input to the program is the number ‘n’ of positive integers to be written into the file starting from 1.
July 6, 2021 in C and CPP
a) Write a function to swap two integers. The function does not return any value.
July 6, 2021 in C and CPP
c) Draw two flow charts to distinguish between break and continue statements.
July 6, 2021 in C and CPP
b) Write a program that takes as input an integer between 1-12 (both inclusive) and prints the month corresponding to that integer.
July 6, 2021 in C and CPP
a) Define Auto and Register variables in context of C. What is the basic difference between these variables?
July 6, 2021 in C and CPP
c) Define a two dimensional array ‘int a[10][10]’. Write a ‘C’ program to initialize this array with numbers between 0 and 99. Then print the contents of ‘a’.
July 6, 2021 in C and CPP
b) What are command line arguments? Explain with the help of a suitable example.