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

C

Avatar of undefined
Last Comment
Sukesh Shukla

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
phoffric

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Sukesh Shukla

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

Doubt cleared
phoffric

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.
Sukesh Shukla

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

complete
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23