For Class XI 1. What is computer system? Explain any one generations of computers. 2. What are the application areas of computer?3. What is html? Define five html tags.4. What is operators in C programming? Define Assignment...
Category - C Programming
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...
#include<stdio.h> #include<conio.h> void main() { int a,i,n1,n2,m; printf("Enter the first and last value of the series\n"); scanf("%d,%d",&n1,&n2); for(a=n1;a<=n2;a++) { printf("\n The...
Using for loop: #include<stdio.h> #include<conio.h> void main(){ int x,y; for(x=1;x<=5;x++) { for(y=1;y<=x;y++) { printf("%d",y); } printf("\n"); } getch(); } Using while...
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...
Library FunctionUser defined function1. library functions are predefined functions in the C compiler.1. user-defined is a function defined by the user to perform specific tasks.2. This function required a header file.2. This...
#include<stdio.h> #include<conio.h> #include<string.h> #define MAX 20 struct alphabetic { char name[50]; char address[100]; }s[MAX], temp; int main(void) { int i, j, index; char t[100]...
Programming Using File Handling: #include<stdio.h> #include<conio.h> void main(){ FILE *fp; fp=fopen("C:\\nepal.dat","w"); fprintf("fp,"%s", "Welcome to Nepal"); fclose(fp); getch(); } output : Welcome to Nepal