CIMPLE by Susant K Rout:D
small program to understand the functions. strlen() #include<stdio.h> #include<string.h> #include<conio.h> void main() { char...
String is array of character terminated with a null character char str[]={'h' ,'e','l','l','o','\0'}; char str1[]="chittaranjan";...
String:):):)
Explanation of two dimensional array let array be arr[3][3] ={{1,2,3}, {4,5,6}, {7,8,9}; then...
C program for two dimensional array #include<stdio.h> #include<conio.h> void main() { int i,j; int arr[3][3]={1,2,3,4,5,6,7,8,9}; clrscr();...
C program for two dimensional array #include<stdio.h> #include<conio.h> void main() { int i,j; int arr[3][3]={1,2,3,4,5,6,7,8,9};...
Declaration int arr[2][2]; int arr[3][3]={1,2,3,4,5,6,7,8,9}; int arr[3][3]={{1,2,3}, {4,5,6}, {7,8,9}};...
TWO DIMENSIONAL ARRAY:):):):
Answer these questions let the array is arr[5]={10,20,30,40,50}; 1. printf("%d",3[arr]); 2.printf("%d",arr[-2]); 3.printf("%d",arr);...
character array char arr[5]={'a','e','i','o','u'}; program that shows o/p as sum of 5 user entered no. #include<stdio.h> #include<conio.h>...
First Array Program #include<stdio.h> #include<conio.h> void main() { int i=0; int arr[5]={1,2,3,4,5}; clrscr(); for(i=0;i<5;i++) {...
Arrays in C Programming Array in 'C ' is a storage area where u can store similar type of data items(Homogeneous data) ex If we have to...
Indefinite loops for(i=0;i<10;i--) while(constant) { } e.g while(1) { printf("Hello"); }
void main() { int i; for(i=0;i<100;i++); printf("Prashanna Bhoi"); } o/p Prashnna Bhoi once. this is called delay loop
few looping practice void main() { int i=5; while(i>5) { printf("Cfanatic.com"); } } o/p No output void main() { int i=5; do {...
First Method a=a+b; b=a-b; a=a-b; Second Method a=a*b; b=a/b; a=a/b; Third Method a=a^b; b=a^b; a=a^b;
void main() { int i=10,sum=0; sum = ++i + ++i + ++i; printf("sum = %d", sum); } void main() { int i =10,sum=0; sum= i++ + i++ + i++;...
yes exit(0); this will take you to end of program:)
Printing all alphabets A-Z. 'C' code is here #include<stdio.h> #include<conio.h> void main() { int i,j,k=65; clrscr(); for(i=0;i<5,i++) {...
Separate names with a comma.