1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

help on c

Discussion in 'C' started by debabrata, Nov 11, 2010.

  1. debabrata

    debabrata New Member

    Hello everyone, I need some details about various types of variables used in C(like local,global,static,const,extern,volatile) & also their behavior inside functions.

    For ex:- what will be the output of the program, with reason

    void main()
    int i=2,j=4;
    func(i , &j);
    printf("i=%d j=%d",i,j);

    void func(int a, int *b)
    *j=*j * *j;
  2. xpi0t0s

    xpi0t0s Mentor

    What happens if you try it?
    Personally I don't think you'll get ANY output, I think the compiler will throw errors.

Share This Page