Re: I have syntax error when i execute littles programs (drag and drop) in C on Fedora...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bastidesamuel@xxxxxxx wrote:

| I don't know I have tried a lot of " how to begin in C"programs but
| these errors are blocking me.
| Thank you for a reply sam ...


First change your "prog.c" program...

printf("%d\n",add(3,5));

to

printf("%d\n",3+5);


Then

gcc prog.c -o prog

Then you can run

./prog

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCVS53jKeDCxMJCTIRAmi5AJ9Y8dLiTt+tHiHuHMF3M75rFDsa3ACeIPV7
2Ze4cyaKjbQmcR+CeLYI95I=
=OMIE
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux