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

C Programming Language

Welcome to the C Programming Language forum.

Browse through the links below to find existing C Programming Language discussions - including source code examples, hints, tips, and tutorials. Example codes are syntax highlighted for your convenience.

If you have just registered or if this is your first time here, and if you wish to include example C code in your posts and messages, please paste them between [cpp] and [/cpp] bbcode tags. This will syntax highlight your C code examples within a post. Please refer to the details here. Also see: C++.

Post New Thread
Threads in Forum : C Programming Language Forum Tools Search this Forum
  Rating Thread / Thread Starter Last Post Reverse Sort Order Replies Views
by WaltP
Guidelines for Posting Requests for Help version 3.1 GIDForums is pleased to provide these forums to help you understand programming techniques and correct programming problems. Following these guidelines will help you post good questions with enough information that we can understand your...
11-Oct-2012 08:35
by WaltP Go to last post
3 9,310
by shikha
i heard that in c we cant call any function before declaration of variables...if it is correct.....then plz tell me the reason....i have tried for calling of clrscr() before declaring variables this shows error in c but not in c++.......plz help me:roll:
11-Oct-2012 08:33
by WaltP Go to last post
2 1,008
by arsymizz
/* Can you check the mistakes? I am trying to sort the array. I certainly have problems in finding the total number of Index? Is there any good way to find number of elements inside an array in c? */ #include <stdio.h> void sortMyArray(int arrayToSort, int tIndex);
10-Oct-2012 17:58
by davekw7x Go to last post
1 839
by refaelok
hello My work environment is dev c ++ and I wanted to add the most basic graphics for small games in dos window. Once there was a library graphic.h but is there I wanted to know what we recommend to learn opengl or something else? .. Again mention, I'm looking for something very basic. I'd love to...
06-Oct-2012 00:26
by Mexican Bob Go to last post
10 1,486
by refaelok
I wrote a very basic program Move the cursor with the arrow. The program works fine, just have one problem. Output to the screen "flickers", it is possible to cause the display to be smooth and still stay on sleep (100)? this is the code: //Refaelok #include <stdio.h> #include <string.h>
26-Sep-2012 15:51
by refaelok Go to last post
8 793
by sincrono
When errors appear at random, say, when the identical procedure sequences of a program crash only sometimes, first we doubt about the reliability of the code. But as in this example, I can't imagine how a simple initialization fails sometimes. Like the one below. The image shows an example of the...
25-Sep-2012 13:18
by davekw7x Go to last post
1 884
by printf("Help")
Hi all, trying to make a simple (or so I thought) Hangman game where 1 player inputs a word and the other then has to guess it. I'm trying to code something that records the number of letters in the word that player 1 enters, but the "i++" part in my while loop seems to be counting twice. You can...
22-Sep-2012 15:35
by WaltP Go to last post
4 932
by swarna.bhatt
Hi Everyone , Below is the small code . void main() { int n1 = 4; int n2 = 2; int s1 = n1/n2; float s2= n1/n2;
13-Sep-2012 08:10
by deepikasnv Go to last post
2 768
by buffett
I spent a week trying to find my mistake on the code as below. I cannot figure it out even though such a simple program! It gives me unexpected value only when j = 0 except when i = 0. When I cancel the Average part in the Average function, it returns right values as the sum. So I know the problem...
04-Sep-2012 01:43
by buffett Go to last post
2 964
by sega16
Hello I have noticed a market shift to mobile phone / entertainment devices (they are much more than phones now a-days) and the only compiler that I found for the iphone xcode is mac only I do not have a mac they are way to expensive and I do not like using a mac. I was wondering what arm compiler...
02-Sep-2012 15:35
by sega16 Go to last post
7 852
by refaelok
hello. I can not deal with this exercise and I would be happy if you can help me. Exercise: Write a function that accepts an array size NxN. The function returns the maximum amount of sub-array size at least 2x2 squares in the array provided. this is what i tried but it dosn't work: int...
29-Aug-2012 03:46
by refaelok Go to last post
8 1,082
by babibabiboo
Hey guys I have to write a program that calculates the angle of a projectile motion using speed, initial height, and distance. The angle must be within the range of- arctan(speed^2/gravitational_acceleration*distance)<or equal to angle<or equal to 90 degrees. The hint was to use the bisection...
22-Aug-2012 08:23
by steamerandy Go to last post
2 1,034
by knockout_artist
Hello. I have buffer with yuy2 data I need to save it on local drive, one frame only. Do I need to convert it first to rgb or some thing ? I saw this png_write_row() function, would it take care of yuy2 format it self? Any ideas?
17-Aug-2012 07:09
by davekw7x Go to last post
7 5,277
by refaelok
hello im new here. im a student for software engineer. i tried to write this program that found digit in numbers in the mat and make dynamic array for the numbers that he found. the program crush in the line "free(arr2);" and sometimes it crush in line "result=(int*)malloc((size2)*sizeof(int));" ,...
16-Aug-2012 23:59
by refaelok Go to last post
7 972
by zikmir
Hi there ! I'm an engineering student and i am learning C language. I really am enjoying my time, but there are some things i really need to ask since im on vacation and i cannot wait to attend classes ! (Yes im a neard). I am aware that we cannot create "strings" in C. So using Arrays to store...
16-Aug-2012 09:34
by davekw7x Go to last post
1 731
by swarna.bhatt
Hi Below is small piece of code #include <stdio.h> #include <malloc.h> int main() { int *iArrPtr = NULL;
30-Jul-2012 06:52
by davekw7x Go to last post
1 756
by cesarmvbr
Hello, folks! I have to generate random points (that represent circles of diameter = 1) without overlapping it each other. The RNG I use is the Mersenne Twister. Does anyone know how can I do it? Thanks in advance.
25-Jul-2012 16:51
by davekw7x Go to last post
1 714
by Rsk08
Hi, im doing a program that converts from a roman number to a numerical number and im trying to write on the screen and also on a file that i created, the program shows no erros opens and when i enter the the numbers to convert it shows me the assertion error i think its related to the fprintf but...
17-Jun-2012 00:00
by Rsk08 Go to last post
8 1,561
by manit123
hi , I intend to convert an 8.3 folder or file name to actual. In cmd.exe or , the following works dir /b "<argument>" But in c program I get -1 return code Here it is #include<stdio.h> #include<process.h> #include<conio.h>
15-Jun-2012 01:02
by manit123 Go to last post
8 1,532
by swarna.bhatt
Hi Everyone , I am always confused with basics of data types . Why does float i = 10/100 results in i = 0.0000 and float i = 10.0/100.0 gives the expected result .(i,e 0.1)
13-Jun-2012 00:34
by swarna.bhatt Go to last post
2 795
Thread Rating: 7 votes, 4.1429 average. by bravetanveer
hi all, The way to dynamically allocate a 2D array is : int a(*); a=(int (*))malloc(sizeof(int)*5);
03-Jun-2012 18:45
by valera Go to last post
51 115,043
Post New Thread

Display Options Moderators
Showing threads 81 to 100 of 3006 Moderators : 1
Sorted By Sort Order
From The
Forum Tools Search this Forum
Search this Forum :

Advanced Search

New posts New posts More than 15 replies or 150 views Hot thread with new posts
No new posts No new posts More than 15 replies or 150 views Hot thread with no new posts
Closed Thread Thread is closed  
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

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:28.

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