Search:

Type: Posts; User: poornaMoksha

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Why `-C', `-f', `-o', and `-W' are not put into MAKEFLAGS variable?

    Hi,

    I was going through GNU documentation for make/Makefile, and was studying about MAKEFLAGS variable. The document said "The options `-C', `-f', `-o', and `-W' are not put into MAKEFLAGS; these...
  2. Replies
    2
    Views
    1,279

    You have not initialized the selection variable ...

    You have not initialized the selection variable


    int main () {
    int num_players, selection, user;
    ...
    ...

    and you are using it in do-while loop
  3. Replies
    10
    Views
    3,219

    Which means that the function checks if the...

    Which means that the function checks if the integer myInt is a power of 2 or not.
  4. Replies
    11
    Views
    1,764

    I agree with Click_here. Not using brackets could...

    I agree with Click_here. Not using brackets could be the potential issue. Can you post your complete code?
  5. Replies
    9
    Views
    2,208

    Understand bubble sort here...

    Understand bubble sort here
  6. Replies
    4
    Views
    856

    void Display_Info(clock_num, wage_rate,...

    void Display_Info(clock_num, wage_rate, clock_hours, overtime_hours, gross_pay)

    You need to mention the types for all the function parameters in here. Otherwise default types would be assumed...
  7. Replies
    6
    Views
    1,853

    Sorry Buddy..I am still not able to understand...

    Sorry Buddy..I am still not able to understand what are you upto. You better rephrase it.
  8. Whaaaat? Whats the use of having num%1 ??

    Whaaaat? Whats the use of having num%1 ??
  9. Replies
    6
    Views
    1,853

    1. fgets() return string on success, and NULL on...

    1. fgets() return string on success, and NULL on error or when end of file occurs while no characters have been read.

    You cannot compare the return of fgets() with EOF. So apply the change...
  10. Replies
    7
    Views
    975

    What you can do is that whenever you...

    What you can do is that whenever you start/restart this phonebook program, read all the entries from 'hehe.txt' (if exists) into the link list and then perform all the operations on this link list....
  11. Yup, I am also a bit curious as to where TC2.0 is...

    Yup, I am also a bit curious as to where TC2.0 is being used now a days??
  12. I created a couple of hard links to original...

    I created a couple of hard links to original file. Then executed the code to delete the original file. The file was deleted from the directory but hard links were able to show the content of the...
  13. Problem related to Linux unlink() function

    Hi,

    I went through the documentation of unlink() function. I believe that if there are multiple links to a file then calling unlink() to delete that file should just decrease the link count of...
  14. Replies
    13
    Views
    4,248

    Thanks a lot guys for your quick help!!!! I got...

    Thanks a lot guys for your quick help!!!!
    I got the answer!!!
  15. Replies
    13
    Views
    4,248

    So, Does this mean that the call to main() is...

    So, Does this mean that the call to main() is decided dynamicly? ie the compiler first parses the way we have defined the main() function in our code and then sets up the call to main() function...
  16. Replies
    13
    Views
    4,248

    @Jim Sorry I saw your reply a bit late. Thanks...

    @Jim
    Sorry I saw your reply a bit late. Thanks for the reply. If this is the case then I assume that main function is always called with two (or three) arguments. Now, suppose I have defined main()...
  17. Replies
    13
    Views
    4,248

    @Jim Sorry I saw your reply a bit late. Thanks...

    @Jim
    Sorry I saw your reply a bit late. Thanks for the reply. If this is the case then I assume that main function is always called with two (or three) arguments. Now, suppose I have defined main()...
  18. Replies
    13
    Views
    4,248

    Hmm.. I am sorry but I am still confused. I...

    Hmm.. I am sorry but I am still confused. I believe that the prototype of the main() function has to be present somewhere as we are only defining it. Or, is it so that our definition of the main()...
  19. Replies
    13
    Views
    4,248

    Prototypes for main() function

    According to my knowledge, there are following two valid prototypes for main() function in C :


    int main(void)
    int main(int argc, char *argv[])

    Now, If i try to create two functions with same...
  20. I did not get you. I have compiled my C program...

    I did not get you.
    I have compiled my C program and then executed it, that's how I told that whats happening and as far as the binary 'hello' is considered..it is also present...
  21. Execute a command from C code in a different terminal

    Hi,

    I want to write a C program that can launch an executable in a new shell different from the controlling shell. So what I did is :

    1) Used the system("gnome-terminal") function to launch a...
  22. Replies
    2
    Views
    764

    I got it working by doing some modifications : ...

    I got it working by doing some modifications :



    //cpp code
    #include<iostream>
    #include<stdio.h>


    extern "C" {
  23. Replies
    2
    Views
    764

    Problem calling C++ from C code

    Hi,

    I have been understanding how to call C/C++ code from C++/C. Firstly I tried calling a C function from C++ code :



    // cpp code
    #include<iostream>

    extern "C" {
  24. Replies
    6
    Views
    6,147

    Ok. Got it. :o Actually I was trying to find the...

    Ok. Got it. :o
    Actually I was trying to find the difference between bus error and segmentation fault and was looking for some code that could produce bus error. I did find one but then could not...
  25. Replies
    6
    Views
    6,147

    Ok, but then why is it giving a bus error? Why...

    Ok, but then why is it giving a bus error? Why not a 'segmentation fault' is being thrown??
Results 1 to 25 of 41
Page 1 of 2 1 2