Forum: C Oct 24th, 2006 |
| Replies: 4 Views: 1,114 well to start with what other way are u talking about????
u didnt even post the entire source code.
well heres what u can do:-
enclose the scanf and the necessary statements to compute the... |
Forum: C Oct 22nd, 2006 |
| Replies: 14 Views: 4,504 well C uses ASCII code and 'A' and 'a' are treated differently. if u enter a instead of A, nothing is assigned to the array and the subscipt is simply incremented. so by default a junk value is... |
Forum: C Sep 2nd, 2005 |
| Replies: 1 Views: 1,050 hi my name is srikanth.i need to compile and execute c programs on red hat linux.please tell me how to do so. |
Forum: C Aug 27th, 2005 |
| Replies: 10 Views: 6,718 put it in a vegetable market and sell it. |
Forum: C Aug 15th, 2005 |
| Replies: 19 Views: 14,690 you can type the input text in a text file and write a c code to open the file and count the number of blanks in between the words. the total number of words=number of blanks+1. hope this was helpful |
Forum: C Aug 13th, 2005 |
| Replies: 2 Views: 9,758 hi could anyone please tell me in detail about the parameters to the main function argc and argv.please let me know as much as possible. |
Forum: C Aug 10th, 2005 |
| Replies: 3 Views: 1,588 i dont have an exact idea. but i think algorithm simulation modelling tool refers to a software program to verify an algorithm and to analyze its time and space complexities |
Forum: C Aug 9th, 2005 |
| Replies: 15 Views: 2,507 [Moderator edit]Removed silly namecalling[/edit]
i have declared a[100].that doesnt mean it is compulsary for the user to enter 100 elements.it is for him to enter a number less than 100 so as to... |
Forum: C Aug 9th, 2005 |
| Replies: 15 Views: 2,507 mr.stoned_coder for your information.the code is executing perfectily.and i have started the counting from 1 so that the program looks more readable and user friendly. |
Forum: C Aug 8th, 2005 |
| Replies: 15 Views: 2,507 okay umbrella here is your code.this will find the largest number in a given set of numbers.first of all you store the given numbers in an array and then initialise a for loop:-
main()
{
int... |
Forum: C Aug 6th, 2005 |
| Replies: 9 Views: 8,516 hi i am having a problem with this code.for every input i am getting the same answer 32.any help would be highly appreciated
/*program to find the factorial of a given number*/... |
Forum: C Aug 5th, 2005 |
| Replies: 6 Views: 2,096 you cannot use & operators to print variable value
in the printf statement use a,b instead of &a and &b |
Forum: C Aug 3rd, 2005 |
| Replies: 2 Views: 1,759 well,if you know the definition for an array.you can understand the two-dimensional array.
basically,a 2-d array can be imagined to be an array of arrays.
i.e. you can imagine a 2-d array as a... |
Forum: C Jul 24th, 2005 |
| Replies: 5 Views: 2,432 i found your mistake. you mixed up "call by reference" and "call by value" which is not allowed in C. in this case while you are calling the addfun and the other functions you are passing the... |
Forum: C Jul 18th, 2005 |
| Replies: 4 Views: 16,956 this code is to find the factorial of a number by the recursion principle.
trace the control flow in this program very carefully. |
Forum: C May 18th, 2005 |
| Replies: 14 Views: 21,506 i am a student of computer science.i require an algorithm to print the pascal's triangle. |
Forum: C May 17th, 2005 |
| Replies: 5 Views: 2,335 you can try using the standard library function in string.h.
use the strlen() function.here is how you do it.:
1.declare two variables say i,j for your two strings say str1,str2
2.let... |
Forum: C May 16th, 2005 |
| Replies: 14 Views: 21,506 hi i am a student of computer science.i am a beginner.i am looking for a simple source code in C to print the pascal's triangle.the user should have the option to enter the number of rows he requires... |
Forum: C May 16th, 2005 |
| Replies: 14 Views: 21,506 hi my name is srikanth.i have been trying to develop a source code to print the pascal's triangle for the past three days.i have'nt had any success.i would be greatly obliged if anyone could give me... |