- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 15
- Posts with Upvotes
- 14
- Upvoting Members
- 10
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
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 … |
|
Re:
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?? |
|
Re:
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 … |
|
|
|
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 … |
|
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, … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
Hello,im a beginner in c.How do we call a function in the main function? |
|
Re:
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 … |
|
Re:
like the thread title said i need the best C book for never programmed person can you please tell me it thanks.... |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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) |
|
Re:
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 … |
|
Re:
what's the meaning of - abstract data type - heab and stack - preprocessor. |
|
Re:
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? |
|
Re:
[B]Hello sir.. I want to know that if there is any difference between Parameter and Argument of a function[/B]....? |
|
Re:
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, … |
|
Re:
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. |
|
Re:
[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] |
|
Re:
What are all the possible stamements that can be used in C, instead of printf and scanf statements? |
|
Re:
// 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 … |
|
Re:
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 ? |
|
Re:
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 … |
|
Re:
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. |