C
In computing, C is a general-purpose, block structured, procedural, imperative computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.
Forum Post

Unsigned Char that returns a Signed Char

Write a function called count1ch that takes a single unsigned character and returns a signed character that is equal to a count of the number of times the bit values changes while "scanning" the byte...
Forum Post

Re: Enter a menu

Use functions. They good and provide readability to the code. Notice how Menu function displays and runs both main menu and lights menu. The only difference is in arrays containing menu strings....
Forum Post

Re: Create File at Starup Error

I was using the relative path "test.txt", but I was set straight by a friend of mine to use absolutes like "c:\test.txt". Switching to absolute paths has solved my problem.
Forum Post

Enter a menu

Hi there, I'm an absoulte beginner in C programming and in a week I have a project to hand in, but not much time available as I have a ton of other projects due in less than 2 weeks. I've only...
Forum Post

Re: Array copying problem

Good answer, however, when the function is used the contents of structures is copied TWICE! instruction i1 = copy_instruction (i1, i2); 1st time INSIDE the function; 2nd time when this...
Forum Post

Re: What is the point of this?

It is an alignment operation. The code wants to add to len the value of 3 and then make sure that the result is divisible by 4. Let's look at it in more details: 1. What is ~3? it is 3 with...
Forum Post

Re: Help with loop

: Hi all, : I have created a program which I would like to to display the error : message as specified by printf and not end with it.I would like to : program to ask for the user's input again...
Forum Post

Re: Create File at Starup Error

What file path/name did you use to open that log file?
Forum Post

Create File at Starup Error

I have a program that maintains a log file. The file is created at the start of the program and appended to as needed. The program works fine in typical operation, but I added it to my "Run at...
Forum Post

Re: What wrong in this program??

several things are wrong. you have a variable "int b" that is never referenced so this program shouldn't compile. the for loop is incremented one to many times,it should be c. This doesn't...
Forum Post

Re: Need Help With Simple Program

Where are you having trouble?
Forum Post

What is the point of this?

I found this assignment operation that looked cryptic so I wrote a test program around it. I still can't figure out what the point is however it seems to just reassign the same value to the variable...
Forum Post

Re: Array copying problem

The problem, I think is your copy_struct function does not return anything so when you pass the structures in as arguments they become local copies and are destroyed on exit from the function....
Forum Post

Help with loop

Hi all, I have created a program which I would like to to display the error message as specified by printf and not end with it.I would like to program to ask for the user's input again if the user...
Forum Post

Need Help With Simple Program

Trying to make a program that: -Has random numbers using SRAND -For the seed use Time -Has to load two single deminsion arrays that are 25 elements each -Sort one array using bubble sort and the...
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.