C programming Quiz 5-10
Quiz 26:int main()
{
static char s[]="Hai Do It";
int i=0;
char ch;
ch=s[++i];
printf("%c\n",ch);
ch=s[i++];
printf("%c\n",ch);
ch=i++[s];
printf("%c\n",ch);
ch=++i[s];
printf("%c\n",ch);
}
Quiz 27:
main()
{
int c=5;
printf("%d",main||c);
getch();
}
Quiz 28:
main()
{
printf("%d, %d", sizeof("c"), sizeof(100));
}
Quiz 29:
int main()
{
int i = 6;
if( ((++i < 7) && ( i++/6)) || (++i <= 9))
;
printf("%d\n",i);
return 0;
}
Quiz 30:
int main()
{
int cnt = 5, a;
do
{
a /= cnt;
}
while (cnt --);
printf ("%d\n", a);
return 0;
}
In case of any explanation kindly comment! DON'T FORGET TO JOIN THIS BLOG.. SHARE IT WITH YOUR FRIEND!
No comments:
Post a Comment