Search:

Type: Posts; User: ssharish

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    6,043

    Thanks very much all this is clear now :)

    Thanks very much all this is clear now :)
  2. Replies
    6
    Views
    6,043

    Many thanks laserlight. Could you please...

    Many thanks laserlight. Could you please elaborate on this? What do you mean by "consecutive sequence points". How does it make it undefined when the same object being modified. Surely i can update...
  3. Replies
    6
    Views
    6,043

    I cant understand the output

    Hi all.

    It been a really long time ive spent time on this board and ive moved on from C and im trying to get back into it. However my memory had been very rusty.

    Could someone please help...
  4. Replies
    8
    Views
    1,032

    The first mistake which you have here is using...

    The first mistake which you have here is using feof function and i cant really see anywhere that you are trying to read something from a file. If you are trying to read from a file you need to open a...
  5. Replies
    15
    Views
    4,094

    thax very much for correcting me guys :)

    thax very much for correcting me guys :)
  6. Replies
    15
    Views
    4,094

    well, the intention of this statment is to find...

    well, the intention of this statment is to find the length of the string


    for(;string[len]!='\0';len++);


    find the length of the string and allocate memory for the ret. what do u all thing...
  7. Replies
    15
    Views
    4,094

    s.s.harish managed to post both a buffer overflow...

    s.s.harish managed to post both a buffer overflow and a memory leak at the same time - classic.

    i am veryy sorry for the wrong post salem. can u please tell me where i have gone wrong

    s.s.harish
  8. Replies
    15
    Views
    4,094

    this is what i do #include ...

    this is what i do



    #include <stdio.h>

    char* rot13(char*);

    int main()
    {
  9. Replies
    6
    Views
    2,124

    read FAQ to find more about this code int...

    read FAQ to find more about this code


    int ch;
    .
    .
    while((ch=getchar()!='\n' && ch!=EOF)
    .
    .
  10. well, it seems to work fine for me, and i am...

    well, it seems to work fine for me, and i am using Dev-c++ compiler. i have made some changes as well



    #include<stdio.h>
    #include<stdlib.h>

    int main()
    {
    int **A, **B, **C, row1, row2,...
  11. Thread: test question

    by ssharish
    Replies
    3
    Views
    1,644

    Originally posted by dudinka hey guys,...

    Originally posted by dudinka


    hey guys, could someone help me with the output of this program:




    #include <stdio.h>
    #define newline {putchar(’\n’);}
  12. Replies
    6
    Views
    2,124

    use this code to clear the input buffer ...

    use this code to clear the input buffer


    while((ch=getchar())!='\n' && ch!=EOF);




    printf("\nIntroduzca el nombre de la persona: ");
    scanf("%s", &gente[b].nombre);
  13. Replies
    5
    Views
    1,213

    Originally Posted by pass_prime /*...

    Originally Posted by pass_prime



    /* Assignment 4 - Bonus

    Variables: int MaxCoins, NumCoin,
    float CurrentAmt,AmtRemaining
    */
  14. Replies
    5
    Views
    1,213

    well, the code dosen't even compile, u have made...

    well, the code dosen't even compile, u have made lots of syntax error, check out these

    1. make sure all the key words starts with low case letters
    2. have all the variables declared
    3. check...
  15. Thread: fgets help!!

    by ssharish
    Replies
    3
    Views
    1,071

    well, if you want to read the data and just print...

    well, if you want to read the data and just print it on screen why dont u do this


    #include<stdio.h>

    int main()
    {
    FILE *fp;
    char str[80];
  16. Replies
    13
    Views
    5,057

    try out this code int rock() { int...

    try out this code



    int rock()
    {
    int compchoicerock;

    srand(time(0));
    compchoicerock = rand() % 3;
  17. well, it looks like the string is fully filled...

    well, it looks like the string is fully filled with NULL. consider the following programe



    #include<stdio.h>

    int main()
    {
    char foo[5]={'\0'};
    int i;
  18. Replies
    4
    Views
    1,546

    and here is one more example ...

    and here is one more example


    #include<stdio.h>

    struct student
    {
    char name[20];
    int age;
    };
  19. this is an example of how to use the sscanf(),...

    this is an example of how to use the sscanf(), here is sample code


    #include<stdio.h>

    int main()
    {
    char str[20]={"hello world 2005"};
    char str1[10];
    int year;
  20. Replies
    9
    Views
    2,193

    the syntax for fputc function is fputc(int,...

    the syntax for fputc function is


    fputc(int, FILE *);


    so your code will be as follow ( and i have made some changes to make your program work fine)
  21. Replies
    20
    Views
    2,800

    while (string[i]!= '_' && string[i]!= (char)EOF);...

    while (string[i]!= '_' && string[i]!= (char)EOF);


    what is this?. if u are looking for a '\' then this is not the proper statment to check



    while(string[i]!='\' . . . . . )
  22. Replies
    20
    Views
    2,800

    try out this bit of code which migght help u ...

    try out this bit of code which migght help u


    #include<stdio.h>

    char * change()
    {
    static char array[10]={"hello"};
    return array;
    }
  23. Replies
    7
    Views
    4,674

    thax Jez my typing mistake s.s.harish

    thax Jez my typing mistake

    s.s.harish
  24. Replies
    7
    Views
    4,674

    printf("%d + %d",1,2); s.s.harish

    printf("%d + %d",1,2);


    s.s.harish
  25. Replies
    16
    Views
    2,538

    thax very much i got it now s.s.ahrish

    thax very much i got it now

    s.s.ahrish
Results 1 to 25 of 186
Page 1 of 8 1 2 3 4