Link to home
Start Free TrialLog in
Avatar of Sukesh Shukla
Sukesh Shukla

asked on

Problem in finding output of a program

What will be the output of this program, please explain


#include<stdio.h>
#include<string.h>

int main()
{
    static char s[] = "Hello!";
    printf("%d\n", *(s+strlen(s)));
    return 0;
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of phoffric
phoffric

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sukesh Shukla
Sukesh Shukla

ASKER

I've requested that this question be deleted for the following reason:

Doubt cleared
If my questions, tips, and suggestions, to guide the author, and associated learning links, helped the author to say "doubt cleared", then don't you think my post should be accepted. BTW, in the future, you are free to ask follow up questions if you have more specific issues. That may help speed up your learning process.
I've requested that this question be deleted for the following reason:

complete