Search:

Type: Posts; User: sagar474

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,733

    I'm using (MinGw) gcc compiler but it didn't...

    I'm using (MinGw) gcc compiler but it didn't warned me.
    but gcc is a good compiler.
  2. Replies
    5
    Views
    1,733

    printing char in hexa decimal

    where char is 1 byte in 32 bit system weather it is signed or unsigned.
    from this bellow program why it is printing it as 32 bit number when it is signed ? I'm running this program on 32 it w7.

    ...
  3. Replies
    44
    Views
    4,809

    a good book is great. but just reading books dos...

    a good book is great. but just reading books dos not help us to be a good programmer.
    you should work with some programming logics.
    develop your own programs of your interest.
    take challenges....
  4. Replies
    10
    Views
    1,998

    yes while ((ch = fgetc(fs1))!=EOF)...

    yes


    while ((ch = fgetc(fs1))!=EOF)
    {

    fputc (ch,ft);
    }
  5. sorry I relay confused with turbo c and tiny c.

    sorry I relay confused with turbo c and tiny c.
  6. themidget you did very good effort. but why you...

    themidget
    you did very good effort.
    but why you using tcc. which is out dated since 1991.
    in our college year we too used the tcc. but i cant understand why to use such old compilers for such a...
  7. Thread: Most spaces

    by sagar474
    Replies
    14
    Views
    1,830

    sorry it is my mistake

    sorry it is my mistake
  8. hence fixed ``chunk'' is read. Help -...

    hence fixed ``chunk'' is read.




    Help - IBM Mac OS X Compilers
    read the line in the above link.
    Use the low-level I/O functions, such as open and close. These functions are faster and more...
  9. anduril462 your lines will help me to avid or...

    anduril462

    your lines will help me to avid or fix bugs also in future development.
    i think this board is full of well experienced developers.

    I really thankful to you since I'm learning a...
  10. yes compiler warned me but i ignored. when you...

    yes compiler warned me but i ignored. when you pointed out i red about it. yes it is dangerous. instead can i replace it with fgets ?


    why should we call a function every time even tho the logic...
  11. Stream I/O is BUFFERED: That is to say a fixed...

    Stream I/O is BUFFERED: That is to say a fixed ``chunk'' is read from or written to a file via some temporary storage area (the buffer). NOTE the file pointer actually points to this buffer.
    it is...
  12. you can also use this instead of while loop and...

    you can also use this instead of while loop and char by char.



    fread(string,sizeof(char),sizeof(char)*sz,fptr1);
    string[sz]='\0';
    fclose(fptr1);
  13. hear is the another way with out performing...

    hear is the another way with out performing reallocation.

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

    int main(int argc, char *argv[])
    {
    FILE *fptr1;
  14. yes you are correct. it is a good idea if the...

    yes you are correct. it is a good idea if the file is too large. but we have to use if condition to check weather the memory is sufficient or not for each time. this again slows down the program. ...
  15. Replies
    3
    Views
    2,383

    void showtree(node *root) { ...

    void showtree(node *root)
    {
    showtree(root->left);
    printf("%d/n",root->data);
    showtree(root->right);
    }


    you are using recursion . and there is no terminating...
  16. Thread: Most spaces

    by sagar474
    Replies
    14
    Views
    1,830

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    int main()
    {
    char string[100];
    int count = 0;
    int max=0;

    printf("enter string\n");
  17. Replies
    4
    Views
    6,774

    thank you for your information. commonTater .

    thank you for your information. commonTater .
  18. this code continuously reallocates a new space...

    this code continuously reallocates a new space for the string.


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

    int main(int argc, char *argv[])
    {
    FILE *fptr1;
  19. there are two solutatins for your problem ...

    there are two solutatins for your problem

    1)create dynamic array and relocating the array multiple times.
    2)create dynamic array and use unix low level io and use dynamic memory allocation...
  20. Replies
    20
    Views
    2,972

    he already changed it. his latest code is in...

    he already changed it.
    his latest code is in post 15
  21. I cant understand your logic. but I'm sure the...

    I cant understand your logic. but I'm sure the logic is more simple thane that you think.

    this program will work as per your description.



    #include<stdio.h>
    int main()
    {
  22. Replies
    20
    Views
    2,972

    scanf ("%c", val2); ---> scanf ("\n%c", val2); on...

    scanf ("%c", val2); ---> scanf ("\n%c", val2); on line 25

    add \n before %c

    because you press enter after entering previous number. you are also giving a new line char "\n" hence the scanf(); is...
  23. Replies
    20
    Views
    2,972

    scanf ("%c", val2); ---> scanf ("\n%c", val2); ...

    scanf ("%c", val2); ---> scanf ("\n%c", val2); on line 25

    add \n before %c

    because you press enter after entering previous number. you are also giving a new line char "\n" hence the...
  24. Replies
    4
    Views
    6,774

    printf("\nIs there any edge between %d and %d...

    printf("\nIs there any edge between %d and %d vertices??(y)",i,j);
    scanf("\n%c",&ch);//add "\n" in scanf ();

    add \n in scan f before %c
  25. Replies
    18
    Views
    3,740

    access the graphics memory with out operating...

    access the graphics memory with out operating system.
    study about graphic card.
Results 1 to 25 of 56
Page 1 of 3 1 2 3