Posts
 
Reputation
Joined
Last Seen
Ranked #359
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
15
Posts with Upvotes
14
Upvoting Members
10
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
7 Commented Posts
~20.7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for rollercoaster

Hi, does anyone know how to pass variables between functions in C so one function can recognise the variable passed from another function. one function knowing from another function like length = 0; while (length <= 5) { length ++; } return(length); getting the value of the length from the …

Member Avatar for Manali_2
0
4K
Member Avatar for suhrud.l

For an array of n int variables, When does binary search perform better than ternary search?? Also, reverse case, ie when does ternary search perform better than binary search? Why is binary search a more preferred method of searching for integers entered in an array??

Member Avatar for c1c2c3c4c
0
240
Member Avatar for dragonpunch

hello how do i open zip and rar files with c ? which lib do u recommend ? is there any one lib that does both zip n rar ? im basically trying to open zip and rar files which contain pics and retrieve a string array of all the …

Member Avatar for Ninetie
0
156
Member Avatar for tutun01111
Member Avatar for Caeon
-2
93
Member Avatar for creeps

This one is pretty strange (or at least I can't figure out what triggers it). I have the piece of code below, but there seems to be a bug with the second call of [icode]scanf[/icode]. It simply gets skipped. So the input should be something like [code] 10 3 fbfbfbfbfb …

Member Avatar for creeps
0
101
Member Avatar for creeps

Yes, it's yet another thread about implementing three basic operations (addition, subtraction and multiplication) on abnormally large numbers (> 100 digits). I've stored each digit inside an array of [icode]int[/icode]s, as the following piece of code illustrates [code=C] while((ch = getchar()) != EOL) a[len_a++] = ch - CHR; [/code] Now, …

Member Avatar for Shift-Stop
0
237
Member Avatar for Pooch74

I'm trying to learn using pointers, and in the code below I can send variables to a function. But the return is obviously wrong and I can't seem to figure it out. What I want the function to return is the number of even number occurrences. Any suggestions to where …

Member Avatar for Pooch74
0
96
Member Avatar for stud02

hi, Is it possible to load a c file into another c file? I want to give a list of functions used in the c file. If this isnt possible, can i give this list of functions from a loaded text file, when i copy the used c file into …

Member Avatar for WaltP
0
114
Member Avatar for Abdullah Amjad
Member Avatar for hyperion
0
139
Member Avatar for swapnaoe

Hi there, Here's a basic question from the basics of C. Woukd like to know the use of appending L or UL at the end of integer constant which is assigned to an unsigned int type variable. for eg: on a 32-bit machine unsigned int i; i= 543727232UL; what way …

Member Avatar for Adak
0
174
Member Avatar for devesh2222
Member Avatar for XMasterrrr

like the thread title said i need the best C book for never programmed person can you please tell me it thanks....

Member Avatar for XMasterrrr
0
161
Member Avatar for BLUEC0RE

I'm making a program that accept 1 character long strings (and ignores spaces " ") until a user presses return/enter. So far I have, [CODE] int main(){ char expression[1]; while ((scanf("%s",expression)) != EOF){ //code } return 0; } [/CODE] it is assumed that the user is entering single digit strings …

Member Avatar for gerard4143
0
2K
Member Avatar for sree_ec

Any suggestions on the best online tutorial/ebook/printed book regarding C libraries and latest c std? I would like to get more coverage on FILE I/O s Thanks in advance

Member Avatar for itpungaraja
0
236
Member Avatar for myk45

Hello, [CODE] #include <stdio.h> int main(void) { const int j = 2; int i; switch (i) { case 1:break; case j:break; default:break; } return 0; }[/CODE] i tried executing the above code, and i got the following error: [B]error: case label does not reduce to an integer constant[/B] Well, since …

Member Avatar for gerard4143
0
86
Member Avatar for Katana24

Hi, just started using Xcode to code C programs. Im trying to create multiple programs in the same source folder but Im getting an error message. When i select 'File' -> 'New File' -> '.C File' I can create the file fine: it creates the .c program and a header …

Member Avatar for creeps
0
215
Member Avatar for abhiab1991

1) Write a program to count the number of blank spaces in a given string. 2) Write a program to abbreviate a given string (e.g. if the input is Amar Akbar Anthony, the output will be AAA)

Member Avatar for abhiab1991
1
130
Member Avatar for Snader

break; The break is used to (1)terminate a case in the switch statement. (2)Force an immediate termination of a loop. sample prog. void main() { int a; printf("1. Happy\n"); printf("2. Sad\n"); printf("Enter Your Choice.."); scanf("%d",a); switch(a) { case 1: { printf("You are happy."); break; } case 2: { printf("You are …

Member Avatar for N1GHTS
0
127
Member Avatar for eman 22

what's the meaning of - abstract data type - heab and stack - preprocessor.

Member Avatar for N1GHTS
-1
100
Member Avatar for MKDWOLF
Member Avatar for gurushankar

hi all, Im a beginner in C. Can you please help me in explaining the function of ## in the below program. #define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); } what does #define f(g,g2) g##g2 mean?

Member Avatar for gurushankar
0
99
Member Avatar for varun mca

[B]Hello sir.. I want to know that if there is any difference between Parameter and Argument of a function[/B]....?

Member Avatar for creeps
0
115
Member Avatar for litsluv

Ok, Here is the problem in the book; You are developing a database of measured meteorological data for use in weather and climate research. Define a structure type measured_data_t (which I have done) with components site_id_num (a four digit integer), wind_speed, day_of_month, and temperature. Each site measures its data daily, …

Member Avatar for Adak
0
198
Member Avatar for challarao

Hi! I have been learning c language on linux for two months.Today I have changed to Windows and don't know how to ,where to write programs and compile them and execution.Please exlain me. (Windows-7,acer) Thanx.

Member Avatar for Auraomega
0
199
Member Avatar for furqankhyraj

[code]Hi every one, i have to choose a project kindly give me idea what type of project i choose in c language i will rate my self 4/10 reply earlier because i don't have more time thanks[/code]

Member Avatar for creeps
0
99
Member Avatar for susin

What are all the possible stamements that can be used in C, instead of printf and scanf statements?

Member Avatar for Auraomega
0
186
Member Avatar for gudads

// I have no knowledge of using gcc compiler. Can some1 please help my creating my first program in c on mac book.... saving on desktop. //saving as testing.c on desktop .. // Creating C program #include<stdio.h> int main(void) { int x=2; printf("X=%d",x); return 0; } Building target “PracticeC” of …

Member Avatar for knobcreekman
0
266
Member Avatar for widapol

Hi all, I got a problem with this question: Read the string "hello" include the NULL character in the end of string. How can I do it ?

Member Avatar for zark_yoc
-1
231
Member Avatar for kloony

Can anyone please explain to me the following strange phenomenon? I have a code in C, and when I compile it is Windows Platform compiler (Borland 5.5), they compiling is fine and when I execute the program, everything turns out ok. However, when I use the same code and compile …

Member Avatar for creeps
0
197
Member Avatar for harikrishna439
Re: gets

HI everybody, currently I'm using ubuntu linux.If I write program in c using c language.I'm getting a warning message while compiling.So if there any to avoid this, please inform me.

Member Avatar for Narue
0
97