Search:

Type: Posts; User: pornoshome

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,515

    so guys! what u say is use of ++ and -- in...

    so guys!
    what u say is use of ++ and -- in passing values to a function is not a good coding practice.
    use temporary variables instead to get a more defined and predictable result. :)

    But how do...
  2. Replies
    12
    Views
    1,515

    I did read the link! :) So you mean to say that...

    I did read the link! :)
    So you mean to say that when I use ++j or j-- in different compilers for different OS's I can expect a different output.

    But how will this help when I am passing values to...
  3. Replies
    12
    Views
    1,515

    To vart: even if i use this code in C, this will...

    To vart:
    even if i use this code in C, this will give the same output
    #include <stdio.h>

    int main()
    {

    int j = 5;

    printf("%d\t%d\t%d\t%d\t", j++,j--,--j,++j);
  4. Replies
    1
    Views
    1,602

    just add the following line after the include...

    just add the following line after the include statements and check whether the module compiles.
    MODULE_LICENSE("Dual BSD/GPL");
  5. Replies
    12
    Views
    1,515

    How do we get this output

    The code is given below
    #include <iostream>
    #include <stdio.h>
    using namespace std;

    int main()
    {
    int i = 4;
    int j = 5;
    //cout<<++i<<"\t"<<j--<<"\t"<<++i<<"\t"<<++j<<endl;
Results 1 to 5 of 5