My issue
My code
#include <stdio.h>
int main() {
printf("%d",Hey);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
#include <stdio.h>
int main() {
printf("%d",Hey);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
%d is called a format specifier. We format specifier only to print variables. “Hey” is not a variable. It is just a string. And %d is used to print integer variables. If you want to print any string message you can directly print it using “string”.
So the correct line would be printf("Hey");