Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mithlesh

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    3,340

    please explain output

    Hi,

    on running program below - I get this as output

    9 5 11 1
    3 5 6 2
    3 11 9 1
    2 5 1 3
    5 6 9 1
    2 6 3 2
  2. Replies
    5
    Views
    6,970

    Re: what's wrong with this program

    Thanks a lot !
  3. Replies
    5
    Views
    6,970

    Re: what's wrong with this program

    "accessing elements out of the actual defined bounds" would be a problem in general everywhere.

    When you say, "if you defined it extern properly" what do you mean here ?
  4. Replies
    5
    Views
    6,970

    what's wrong with this program

    The file1.c defines an array 'myarray' as,

    int myarray[10];

    The file2.c uses 'myarray' as,

    extern int *myarray;
    void foo()
    {
    myarray[0] = 10;
  5. Replies
    5
    Views
    2,571

    Re: explain output

    Thanks for your reply. Because no array in involved here, i found this output quite vague.
  6. Replies
    5
    Views
    2,571

    explain output

    Hi,

    When I run this program I get 10 as output. Can any one explain why output is 10 ? Thanks !


    int *i, *j;
    i = (int *)60;
    j = (int *)20;
    ...
Results 1 to 6 of 6


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center