CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 3 matches
CCS Forum Index
Author Message
  Topic: Silly parameters function problem
Ark2040

Replies: 6
Views: 7997

PostForum: General CCS C Discussion   Posted: Tue Jul 22, 2014 5:55 pm   Subject: Silly parameters function problem
This is a basic C question. You need to study this topic off the forum.
Google for it:
How to return a value from a function in C
Look at some of the hits that you get. Study how they do it. ...
  Topic: Silly parameters function problem
Ark2040

Replies: 6
Views: 7997

PostForum: General CCS C Discussion   Posted: Tue Jul 22, 2014 4:52 pm   Subject: Thk U
Either

int8 z;

z = x * y;

return z;


Or

return x * y;

First method will definitely work; 2nd may make the compiler complain.

Yes, I knew that Newguy, but I'm trying to write insi ...
  Topic: Silly parameters function problem
Ark2040

Replies: 6
Views: 7997

PostForum: General CCS C Discussion   Posted: Tue Jul 22, 2014 3:16 pm   Subject: Silly parameters function problem
Hi guys, I would like to do any like this code, but I dont know why doesnt work ?

#include <16f877.h>
#fuses HS,NOWDT,NOPROTECT
#use delay (clock=4000000)
#byte PORTA=0x05
#byte ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group