Answer:
Advance your career
Gain more knowledge
And have another way to talk to your friends especially during the pandemic
Answer:
#include<stdio.h>
#include<string.h>
int main(){
char str[20];
int i=0;
printf("Enter a name: ");
gets(str);
printf("%c",*str);
while(str[i]!='\0'){
if(str[i]==' '){
i++;
printf("%c",*(str+i));
}
i++;
}
return 0;
}
Explanation:
Answer:
The only difference is the order of operations between the increment of the variable and the value the operator returns. So basically ++i returns the value after it is incremented, while i++ return the value before it is incremented.
Answer:
The decimal number is 32 and the Hexidecimal is 20