S
sangeeta chowdhary
I tried this code,and getting output -hhe!
Not able to understand why i am getting exclamation mark in output.
#include<stdio.h>
#include<string.h>
int main()
{
static char s[25]="the cocaine man";
int i=0;
char ch;
ch=s[++i];
printf("%c",ch);
ch=s[i++];
printf("%c",ch);
ch=i++;
printf("%c",ch);
ch= ++i;
printf("%c",ch);
return 0;
}
Not able to understand why i am getting exclamation mark in output.
#include<stdio.h>
#include<string.h>
int main()
{
static char s[25]="the cocaine man";
int i=0;
char ch;
ch=s[++i];
printf("%c",ch);
ch=s[i++];
printf("%c",ch);
ch=i++
printf("%c",ch);
ch= ++i
printf("%c",ch);
return 0;
}