Posts

Data type of C Programming Language

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #include<stdio.h> #define limit 40 int main () { char c; char s1[] = "Nahid" ,s4[]={ 'H' , 'a' , 's' , 'a' , 'n' , '\0' },s[limit]; //\0 use na korle repeat hoy int i,i2,n; int a[limit]; float f; double d; //freopen("input.txt","r",stdin); //freopen("output.txt","w",stdout); /*FILE *fptr; fptr = (fopen("C:\\student.txt", "w")); fprintf(fptr,"\nName: %s \nMarks=%d \n", name, marks);*/ // \0 is zero character. In C it is mostly used to indicate the termination of a character string. printf( "Enter character\n" ); scanf( "%c" ,&c); printf( "its a character type data %c\n" ,c); printf( "Enter string: last