GeeksforGeeks » C/C++ Programming Questions

Output of C program?

(2 posts)

Tags:

  1. ganesh
    guest
    Posted 1 year ago #

    The output of the program?

    void main()
    {
        char  str[5] = “abc”;
        printf (“%s”, &0[str]);
        getchar();
        return 0;
    }
    
  2. sergey.p
    Member
    Posted 1 year ago #

    'abc' obviously


Reply

You must log in to post.

RSS feed for this topic