Page 1 of 1

Why Some Pocket C Syntax Differs From C/C++ ?

PostPosted: Thu Aug 07, 2008 4:38 pm
by dan19
Hi,
I am currently learning C from very basic level. I downloaded the Pocket C just to continue on learning and developing C programs in palm of my hand ! But I found that the some syntax is different from original C.Like instead of "printf" function there is "puts" function.
So is it possible to program in the original syntax or change in syntax is possible ? :?:

Any answers will be helpful to me.
Thanks,
Dan.

Re: Why Some Pocket C Syntax Differs From C/C++ ?

PostPosted: Fri Aug 08, 2008 5:41 pm
by tommyrev
"puts" is a standard c/c++ function:

It is declared in <stdio.h>

The format of puts is:
int puts( char *str );

Description:
The function puts() writes str to STDOUT. puts() returns non-negative on success, or EOF on failure.

PocketC is a c/c++ like language. It does not claim to be 1-1 with c or c++, but it is very similar.

If you are trying to learn C (or C++), I would get a book that walks you through the language.

Re: Why Some Pocket C Syntax Differs From C/C++ ?

PostPosted: Sat Aug 09, 2008 4:32 pm
by dan19
Thanks,
I didn't know that !