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

Discuss topics that apply across the products, such as the PocketC language, or development in general

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

Postby dan19 on Thu Aug 07, 2008 4:38 pm

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.
dan19
 
Posts: 2
Joined: Wed Aug 06, 2008 4:41 pm

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

Postby tommyrev on Fri Aug 08, 2008 5:41 pm

"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.
tommyrev
 
Posts: 25
Joined: Fri Feb 07, 2003 11:00 pm
Location: USA

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

Postby dan19 on Sat Aug 09, 2008 4:32 pm

Thanks,
I didn't know that !
dan19
 
Posts: 2
Joined: Wed Aug 06, 2008 4:41 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron