Search:

Type: Posts; User: j.sreejit

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,193

    Initializing a file

    Hi friends,

    I am new to file handling and i need some help.

    How can i initialize a file with 100 empty records and then add new records as the user chooses to do so?

    This is what I want to...
  2. Thanks a lot Salem and hk_mp5kpdw. Salem, I tried...

    Thanks a lot Salem and hk_mp5kpdw. Salem, I tried google but my search text was ... well... stupid I guess, after looking at your search results. Thank you for the help.
  3. CornedBee, Thank you for information on void...

    CornedBee, Thank you for information on void main. I am a beginner and did not know that we are not supposed to use void with main....
  4. Thank you!

    Thank you so much for the replies. I am using the compiler because I have to appear for a lab test next month and we will be asked to code on Turbo C.

    Kurt, your solution of declaring and...
  5. Problem with structure with a float variable

    Hi,

    I created a structure which has 2 char arrays and 1 float variable. When trying to input data into the float variable the program crashes. On the output screen I can see the following error.
    ...
  6. Replies
    6
    Views
    2,523

    Thank you risby, andor and salem for replying....

    Thank you risby, andor and salem for replying. Andor, that link was really informative. Thanks.
  7. Replies
    6
    Views
    2,523

    Unexpected behaviour with float

    Please consider the following code



    void main()
    {
    float a = 0.7;
    if(a <= 0.7)
    printf("Less or equal");
    else
  8. Replies
    4
    Views
    1,365

    i know i++ + i++ is bad programming...

    i know


    i++ + i++


    is bad programming practice because of the ambiguity. I am only a beginner so it confuses me to see such statements and it terrifies me when i realise that i would have...
  9. Replies
    4
    Views
    1,365

    The '++' operator. !!! HELP !!!

    Hi friends,
    I am new to the C language and need some help with the increment operator '++'. Please check the following code snippet:


    int i,a;
    i=0;
    a = i++ + i++;
    printf("\n i++ + i++ =...
  10. Replies
    48
    Views
    5,247

    The address (&x) is passed to the pointer (xPtr),...

    The address (&x) is passed to the pointer (xPtr), which is in the function calculate() and the second line in main assigns memory to the pointer xPtr, which is in main.

    I believe these are two...
Results 1 to 10 of 10