CrazyEngineers
  • C code: smiley o/p

    Updated: Oct 26, 2024
    Views: 2.5K
    Here is the code and the output.
    I don't understand why the output is a smiley.
    Can someone explain?

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    char *s="hello world";
    clrscr();
    printf("%.*s", *s);
    getch();
    }
    
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register