Search:

Type: Posts; User: revanthb3000

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,069

    Change this : search(a,b,size) to this :...

    Change this : search(a,b,size)
    to this : search(a[i],b,size)
  2. Replies
    7
    Views
    1,069

    Here a few errors in your program : void...

    Here a few errors in your program :



    void search(char a,char b[], int size);

    Change the return type to bool.
  3. Replies
    10
    Views
    2,354

    I suggest you use a normal array of strings and...

    I suggest you use a normal array of strings and define them like this :

    num_string[1]="one"
    num_string[2]="two"
    ..........
    num_string[98]="ninety eight"
    num_string[99]="ninety nine"

    If want...
  4. Replies
    5
    Views
    1,614

    The purpose of the 'for' loop at line 7 is to...

    The purpose of the 'for' loop at line 7 is to execute statements 8-13 multiple times(in this case 9 times). This is done so that we end up with a sorted array.

    If you have a hard time trying to...
  5. Replies
    4
    Views
    1,168

    I'm assuming your familiar with arrays. If not, I...

    I'm assuming your familiar with arrays. If not, I suggest you read a bit about it.

    To use strings in C, we use an array of characters.

    Say you declare
    char carray[10];

    Now, the variable...
  6. You could fscanf and read each word in the file....

    You could fscanf and read each word in the file. You won't encounter any problems...It's pretty straightforward.
  7. This is your declaration : double...

    This is your declaration :


    double Average(int grades[],int numofgrades)

    The function expects two arguements (int *,int ). But...

    This is how you called the function
  8. Thats makes life a lot easier for me..Thanks a...

    Thats makes life a lot easier for me..Thanks a lot guys
  9. @CommonTater : I wasn't talking about the random...

    @CommonTater : I wasn't talking about the random function. I was asking about the arrow keys usage. How do you get the compiler to receive the arrow keys input ? What code/function do you have to...
  10. but how to use it a program ? could you give an...

    but how to use it a program ? could you give an example ?
  11. using Arrow keys & random number generator

    I'm a beginner at C. I'd like to know how the arrow keys can be used in C. What type of input does the compiler receive when one of the arrow keys is pressed ? How can we use it in a program(like up...
  12. but the output is fixed...I'm getting the 2nd...

    but the output is fixed...I'm getting the 2nd number +1 as the output...why ?
  13. output generated even though there's no return in function ?

    #include<stdio.h>
    int power(int,int);
    main()
    {
    int x,y,o=1;
    while(o==1)
    {
    printf("\nEnter the 2 desired numbers : ");
    scanf("%d%d",&x,&y);
    printf("\nThe answer is %d.\n",power(x,y));
  14. Now that I see it I feel like shooting...

    Now that I see it I feel like shooting myself..such a silly yet fatal mistake..

    thanks a lot tabstop..
  15. Problem on loops. Where have I gone wrong ?

    Hi...
    I'm new to both C language and this forum.
    I have a problem with the following program.


    #include<stdio.h>
    main()
    {
    int con=0,con_limit,beta,alpha,num,reva,i;
    printf("\nEnter a...
Results 1 to 15 of 15