[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines

Home
Forum
Project Ideas
C Course
LCD-KEYS OnePort
PIC Projects
Tips & Techniques
PIC Introduction
PIC Programmer
Schematic Tool
PIC Tutorials
Digital Downloads
Store
My SECRET
Oscilloscopes
About Me
Contact
Terms of Use
Search This Site
Freebies
Articles
Books
Projects Showcase
Resource Links
Site Map
Video du Jour
Rant/Rave
Privacy Policy
Problem?-Solution
Programmer Types

Comments for
Pointers in C language for Newbies - a DEMO in Debugger

Average Rating starstarstarstarstar

Click here to add your own comments

Dec 18, 2010
Rating
starstarstarstarstar
UPDATED CODE
by: CaptBry

THE CODE SEEMS TO HAVE BEEN CORRUPTED; INVISIBLE CHARACTERS EMBEDDED IF YOU COPY/PASTE IT.

I RE-WROTE THE CODE, TESTED IT IN MIKROC AND AM UPLOADING IT TO THIS PAGE VIA ITS OWNER.
PLEASE STAND BY

Dec 18, 2010
Rating
starstarstarstarstar
Assigning Arrays
by: CaptBry

char letters is an array.
seems there's a typo since the Array Size should be 7

try:
char letters[7] = "1234567";

note the square brackets.

I've had trouble with this king of "define and assign" single statement in various compilers.

Check the Help on Arrays. it might advise

char letters[7];
then load the characters into the array individually with a for 1 to 7 loop.

Of course using Pointers lets you just change the array's address to your character string ;-)

enjoy!



Dec 18, 2010
Rating
starstarstarstarstar
Error message
by: Chuck Wright

char letters7 = "letter"; // ASCII arrays
mikroC error message "incompatable types"
Please advise.

Click here to add your own comments

Join in and write your own page! It's easy to do. How?
Simply click here to return to Project Showcase

Return to Pointers in C language for Newbies - a DEMO in Debugger