W
wintaki
Hi,
I am trying to learn C++ and have some questions. I get a
"Segmentation fault", whatever that is, when I try this simple program.
Basically the program is suppose to print "five". I have been reading
on printf and I think I found a bug with the %s symbol. it says %s is
suppose to print the string but it does not work!
Thanks be to you!
#include <stdio.h>
#define is =
#define start main()
start
{
int x is 5;
printf("the value of x is %s\n", x);
}
I am trying to learn C++ and have some questions. I get a
"Segmentation fault", whatever that is, when I try this simple program.
Basically the program is suppose to print "five". I have been reading
on printf and I think I found a bug with the %s symbol. it says %s is
suppose to print the string but it does not work!
Thanks be to you!
#include <stdio.h>
#define is =
#define start main()
start
{
int x is 5;
printf("the value of x is %s\n", x);
}