You are here:
i can answer queries related to general programming constructs in C.
i have been programming in c since 1998.
| User | Date | K | C | T | P | Comments |
|---|---|---|---|---|---|---|
| Trevor McCook | 08/07/06 | 10 | 10 | 10 | 10 | Very prompt and well researched answer to ..... |
| Arvind | 12/22/05 | 8 | 10 | 10 | 10 | Thank you very much Kaustav. -Arvind |
| John | 11/26/05 | 10 | 10 | 10 | 10 | |
| binu | 09/29/04 | 10 | 10 | 10 | 10 | Two thumbs up! |
| bas | 09/26/04 | 10 | 10 | 10 | 10 | Two thumbs up! |
Like this - #include<stdio.h> #include<conio.h> #define N 6 int main() { int x[] = {30, 12, 51, 17, 45, 62,}; int i ; int sum = 0; for(i=0; i<N;i++) { if(i%2==0)
Hi Katrina, the variable "inputstr" contains the original string without the "*" character. We are creating a new string variable "outputstr" to store the manipulated value of the variable "inputstr"
Hi Katrina, should be something like this - char inputstr[30], outputstr[60]; int len=0,i=0,j=0,k=0; printf("Enter a string: \n"); scanf("%s",&inputstr); len = strlen(inputstr); j=0; k=0
Answers by Expert:

©2010 About.com, a part of The New York Times Company. All rights reserved.