| Subject | Date Asked |
|
| constant pointer | 11/13/2009 |
Q: Is there any difference between *ptr and &ptr in following codes code 1 ------ int x = 10; ... A: Ajay. First, looking at your code, it appears to be mis-categorized. Your second piece of code is ...
|
| What would the following print? | 11/9/2009 |
Q: Joseph, I've come across this program the other day, and I just can't get the answer for this one, ... A: Angela. The problem is that you have declared a global variable called ctr and used this in both ...
|
| question | 11/3/2009 |
Q: explain the function of fflush<stdin>? A: Ankit. Please don't use the fflush function. The function is intended to flush the buffer provided ...
|
| c programe for prime number | 11/1/2009 |
Q: First, i need to calculate, and print out all the prime numbers less than or equal to the number 17 ... A: Ming. You are very, very close with your answer already. I've made a few changes to the program ...
|
| c program | 10/5/2009 |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: What compiler are you using, and can you copy/paste the specific warnings? What happens when you ...
|
| c program | 10/4/2009 |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: Coco. You are very close in your attempt. There are a few semantics issues, but your algorithm is ...
|
| c program | 9/28/2009 |
Q: C program that computes and prints out the sum of all natural numbers below 100000 that are ... A: Coco. I prefer people to try the code for themselves to begin with, so I'll go over what operations ...
|
| Reading line from the standard console | 9/24/2009 |
Q: I was trying to read a line from the standard in put console with the string limited by the length ... A: The problem you're seeing is a very common problem experience by beginners. It has to do with the ...
|
| Problem of skiping a address in structures. | 9/24/2009 |
Q: I made the following programe: #include<stdio.h> #include<conio.h> #include<string.h> void main() ... A: Kshitij. The problem you're seeing is a very common problem experience by beginners. The problem ...
|
| C programming | 9/23/2009 |
Q: how do i declare an ESC button, so that when user presses it the program terminates? A: Tumelo. The simplest way to do this is to use the exit function. The format of the exit function ...
|
| string and charecter manipulation using strings | 9/20/2009 |
Q: i have to work on two functions one to replace and another one to match strings using pointers. ... A: Nick. I generally prefer not to just give code, but I'm a little tired right now and it's easier to ...
|
| c++ programing | 9/17/2009 |
Q: i have a C++ project which i am to submit very soon, i am not good at programing. what is that i ... A: Thao. Your first question, "what is it that I need to become a good programmer," is a bit difficult ...
|
| Writing a simple c program using a linked list | 9/5/2009 |
Q: Create a structure that has one variable called value and one pointer to the list (making it a ... A: Jeff. Don't give up just yet. I firmly believe that anyone can learn to program, some people just ...
|
| c program | 9/3/2009 |
Q: help me make a program that output the lowest term of a fraction that is entered by the user? A: Harvey. Below is the code to receive a fraction input by the user and reduce it to its lowest ...
|
| C Programming | 8/31/2009 |
Q: Write a program that examines all the numbers from 1 to 999, displaying all those for which the sum ... A: Abhimanyu. You clearly understand some of the basic concepts needed to solve this, such as the / ...
|
| Turbo C using fseek | 8/26/2009 |
Q: sir/madam i need your help regarding this issue...How to use fseek function to search some file in a ... A: Bryan. This isn't really a case where you would use fseek (sort of, I'll explain in a bit). You're ...
|
| c | 8/21/2009 |
Q: sir please give me a recursive program in c using functions to print pascal's triangle with 0,1 A: Here is the code to print the lines of a Pascal's Triangle. Note that there is no attempt here to ...
|
| source code of C++ Compiler and interpreter | 8/13/2009 |
Q: sir, i would like to know where i could get the source code of C++ compiler and interpreter written ... A: Most compilers consist of copyrighted material which is very, very protected. You will not be able ...
|
| exe file | 8/8/2009 |
Q: How to make an exe file from multiple c files? A: When you compile a program, it generates an executable. It may not be immediately obvious where ...
|
| GRAPHICS | 8/8/2009 |
Q: i had written a program which includes a header file called graphics.h but as soon as i compile that ... A: The Borland Graphics Interface (BGI) is very old and intended to run in DOS, not Windows. I've seen ...
|
| Array of Structure Problem | 7/28/2009 |
Q: I have problem in array of structure. When data member of structure taken in float datatype. It cant ... A: It sounds like you're using an old compiler that tries to leave out floating point operations if ...
|
| preference of programming language | 7/28/2009 |
Q: Enhancing my knowledge of FORTRAN 90 is an intention of mine which we, as students of 1st semester ... A: While it's true that FORTRAN is rarely used these days, it does still have its place in legacy ...
|
| sorting | 7/27/2009 |
Q: is only if statement require in recursion? ANSWER: Recursion occurs when you call the same function ... A: The sorting algorithm names are (theoretically) descriptive of how they work. Bubble sort is so ...
|
| program to on caps lock | 7/27/2009 |
Q: please help with the program that will help to on caps lock, num lock and scroll lock.please!! A: If this is a Windows machine, then the following will work (this particular example is num lock, but ...
|
| pointer in c lanuage | 7/26/2009 |
Q: is only if statement require in recursion? ANSWER: Recursion occurs when you call the same function ... A: Sachin. I absolutely love pointers and pointer manipulation. Once you understand the concept of ...
|
| question | 7/26/2009 |
Q: #include <stdio.h> char *strrev(char *s,int n) { int i=0; while (i<n/2) { ... A: Sagar. This is a new one to me. I have no idea why, but I've never seen the function bzero. That ...
|
| recursion in c lanuage | 7/14/2009 |
Q: is only if statement require in recursion? A: Recursion occurs when you call the same function repeatedly with slightly differing input values, ...
|
| Basic looping | 7/10/2009 |
Q: I just began learning C today, and in my first attempt to create a simple command line utility I ... A: Derek. There are a few ways to accomplish this, really. First, I'll give you a brief rundown of ...
|
| rand and array | 7/9/2009 |
Q: Can you teach me how to select one element from an array via random order then finally all the ... A: I'm sorry, I'm not familiar with TCL, so I can't help you with the TCL version of this. The C ...
|
| C programming - User Input issue | 7/2/2009 |
Q: I am trying to write a simple program for inputtig a mailing address. I am new to the C programming ... A: Mike. OK, so there are a few problems here with your code. First, you're using doubles as storage ...
|
| Question in C language | 6/24/2009 |
Q: Sir, I want a program in C in which text file can be convertd to numeric file,and other i want to ... A: Sunny. I don't quite understand your first question, so I apologize if my answer doesn't quite meet ...
|
| 3D Game Programming | 6/19/2009 |
Q: I recently found a book at my house called "The Black Art of 3D Game Programming" by Andre LaMonthe: ... A: The LaMothe books are very well known in the industry and most people have at least one book in the ...
|
| Converting Bytes to Float | 6/11/2009 |
Q: I have an array of 7200 bytes. I need to start with byte0 and use 4 contigous bytes, convert to ... A: In C, you do have to declare all variables at the beginning of a block. Alternatively, if you don't ...
|
| Converting Bytes to Float | 6/10/2009 |
Q: I have an array of 7200 bytes. I need to start with byte0 and use 4 contigous bytes, convert to ... A: The simplest thing to do would be to take your array and cast it as a float*, then you're accessing ...
|
| table sort | 6/5/2009 |
Q: How are you? I was wondering if I could ask you a sorting question. I have a table where rows are ... A: Eric. Your solution is almost right, it's just backwards. Essentially, what you need to do is ...
|
| linked list | 5/26/2009 |
Q: Pls help me in understanding linked list in 'C' with easy example A: The linked list is a simple, very commonly used data structure. Linked lists typically come in a ...
|
| c programming | 5/24/2009 |
Q: { char s[]="hello";char t[]="hello";if(s[]==t[]) printf("true");else printf("false");} why the ... A: The code snippet you've given isn't compilable, but I'm going to assume it should, instead, read ...
|
| c | 5/22/2009 |
Q: wat is the following line means: pszValue = (char *) pCdrFmtDtl->pValue; where pValue is declared as ... A: The line is type casting the pCdrFmtDtl->pValue pointer to a character*. A void* is, by definition, ...
|