#include<stdio.h>
//code by rajendra
main(){
char str[30];
int a=10,b=3;
float result;
result=((float)a)/b;
//result=(float)(a/b);
printf("%d\n",result);
printf("jitendra"+2);//read after first two
printf("\n%d %d");//garbage
printf("\n%d\n",5,7);//output =5
printf(3+"jitendra");//read after 3 char
printf("\n");
printf(3+"jitendra"+2);//read after first 2+3=5 character
printf("\n");
printf("%c\n","ABCDEF"[2]);//output C
//scanf("%[^a]",str);//read the string till alphabate a
//scanf("%[^\n]",str);//read till enter
printf("%s",str);
printf("percenatage symbol is %% char of the keyboard\n");//print % symbol
printf("backslash is \\ character \n\n");
printf("print double quota using \" and single is '\n\n");
}
//code by rajendra
main(){
char str[30];
int a=10,b=3;
float result;
result=((float)a)/b;
//result=(float)(a/b);
printf("%d\n",result);
printf("jitendra"+2);//read after first two
printf("\n%d %d");//garbage
printf("\n%d\n",5,7);//output =5
printf(3+"jitendra");//read after 3 char
printf("\n");
printf(3+"jitendra"+2);//read after first 2+3=5 character
printf("\n");
printf("%c\n","ABCDEF"[2]);//output C
//scanf("%[^a]",str);//read the string till alphabate a
//scanf("%[^\n]",str);//read till enter
printf("%s",str);
printf("percenatage symbol is %% char of the keyboard\n");//print % symbol
printf("backslash is \\ character \n\n");
printf("print double quota using \" and single is '\n\n");
}
No comments:
Post a Comment