GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Jul-2005, 12:36
kobi_hikri's Avatar
kobi_hikri kobi_hikri is offline
Regular Member
 
Join Date: Apr 2005
Location: Israel
Posts: 431
kobi_hikri has a spectacular aura aboutkobi_hikri has a spectacular aura about

Some general questions about ansi-c.


Hey there and Shabat Shalom to all of you :-)
I got some questions and would appreciate any opinion (explained) :

1. Is the result of an explicit cast of integer variable to char variable Identical to assignment of integer variable into char variable ?
2. About handling functions : Is it always possible to call any function from any other function (given the prototypes are written, of course) ?
I think there is something with static functions that should be taken into account but I'm not sure.

Thank's in advance for any response.
Kobi Hikri.
  #2  
Old 01-Jul-2005, 13:35
Dave Sinkula Dave Sinkula is offline
Member
 
Join Date: Apr 2005
Posts: 199
Dave Sinkula will become famous soon enough
Quote:
Originally Posted by kobi_hikri
1. Is the result of an explicit cast of integer variable to char variable Identical to assignment of integer variable into char variable ?
The same conversion is performed with either the explicit cast or the implicit one.
Quote:
Originally Posted by kobi_hikri
2. About handling functions : Is it always possible to call any function from any other function (given the prototypes are written, of course) ?
I think there is something with static functions that should be taken into account but I'm not sure.
A function declared as static is limited in scope to the module in which it is declared.
  #3  
Old 01-Jul-2005, 13:41
kobi_hikri's Avatar
kobi_hikri kobi_hikri is offline
Regular Member
 
Join Date: Apr 2005
Location: Israel
Posts: 431
kobi_hikri has a spectacular aura aboutkobi_hikri has a spectacular aura about

Got it :-)


Thank's Dave.

Quote:
Originally Posted by Dave Sinkula
The same conversion is performed with either the explicit cast or the implicit one.
A function declared as static is limited in scope to the module in which it is declared.
 
 

Recent GIDBlogMeeting the populace by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General questions regarding the language kobi_hikri C Programming Language 1 16-May-2005 13:53
Hello from cali, questions about web design jonnydangerous New Member Introductions 3 20-Aug-2004 13:59
A few general questions about security ... Balthazar Apache Web Server Forum 0 11-Jul-2004 10:55
Multi-Lingual Webpages & A Couple General Questions. dwaunthomas Web Design Forum 5 15-May-2004 11:07
Simple questions? Netizen Dave Apache Web Server Forum 3 17-Mar-2004 04:45

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:33.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.