Search:

Type: Posts; User: capvirgo

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,440

    Thanks again Mats :-)

    Thanks again Mats :-)
  2. Replies
    4
    Views
    1,440

    But x is replaced by z, next x is again replaced...

    But x is replaced by z, next x is again replaced by y and in the next #define statement y is replaced by x again.

    so when the preprocessor comes to the first line "int x = 1;" which #define will...
  3. Replies
    4
    Views
    1,440

    Help with #define

    How does c decides on what x and y are replaced with -



    #define z x
    #define y x
    #define x y

    int x = 1;
    {
  4. Replies
    2
    Views
    778

    Thanks Mats.

    Thanks Mats.
  5. Replies
    2
    Views
    778

    Operators and COmpilers

    How is c reading this, what does the compiler converts this to



    int x = 100 + 10 + 1 - - 1 - + 10 + - 100;

    printf("\n\tX = %d\n", x);
  6. Replies
    4
    Views
    2,733

    Thanks maverix

    Thanks maverix
  7. Replies
    4
    Views
    2,733

    Confusion with typedef

    typedef int (*test) ( float * , float*)
    test tmp;



    what is the type of tmp, is it int ?
  8. Replies
    4
    Views
    1,951

    thanks guys

    thanks guys
  9. Replies
    4
    Views
    1,951

    okay, I think, since their is no assignment...

    okay, I think, since their is no assignment operator. summing of ++i and ++i does not happen. Right ?
  10. Replies
    4
    Views
    1,951

    Help with increment operator, please

    int main()
    {
    int i=3;
    int j;

    ++i + ++i;

    printf("\n\ti=%d j=%d", i ,j); //Prints i = 5. But its (4)+(5) = 9 right?

    return 0;
  11. Replies
    2
    Views
    2,106

    Help with increment operator

    how does this work


    main()
    {
    int i=3;
    int j;

    j = sizeof(++i+ ++i); // ++i = 4, again ++i = 5. Then ++i + ++i = 5+5 = 10?
  12. Replies
    2
    Views
    1,677

    Explain me what is happening

    Please explain me what is happening


    main()
    {
    int a[][3] = { 1,2,3 ,4,5,6};
    int (*ptr)[3] =a; //Is address of 'a' being assigned to (*ptr)[0] or (*ptr)[3]?

    printf("%d %d "...
  13. Replies
    9
    Views
    1,398

    Great, Thanks all

    Great, Thanks all
  14. Replies
    9
    Views
    1,398

    yes, just found out that. what would be a safe...

    yes, just found out that. what would be a safe way to read lines from keyboard
  15. Replies
    9
    Views
    1,398

    thats right, thanks. But I added fflush(stdin)...

    thats right, thanks. But I added fflush(stdin) just before the gets(), but it still was reading newline character from previous input. Was fflush not flushing stdin buffers ?
  16. Replies
    9
    Views
    1,398

    When I step through the program the value of the...

    When I step through the program the value of the first gets() remain as '\\0' unchanged , so its not picking up any thing from the input buffer
  17. Replies
    9
    Views
    1,398

    Declaration of address: #define MAX 100 ...

    Declaration of address:

    #define MAX 100

    struct addr
    {
    char name[80];
    char street[40];
    char citi[40];
    char state[40];
  18. Replies
    9
    Views
    1,398

    unusual behaviour by GETS function

    The first gets function gets skiped but the remaining get functions work, that is the control just moves on to the next line. WHy is this happenning




    void add_address(void)
    {
    int slot;...
  19. Replies
    8
    Views
    1,889

    thanks guys,

    thanks guys,
  20. Replies
    8
    Views
    1,889

    with each run, it displays a random number

    with each run, it displays a random number
  21. Replies
    8
    Views
    1,889

    Unusual program Output, Help

    Below is the small program


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

    int main()
    {
    printf(" %#f\n", 415);
Results 1 to 21 of 21