214 views
0 votes
0 votes
What is the output of given program?
main()
{
char g[] = "iamsahilraza";
printf("%s", g + g[8] - g[10]);
}

1 Answer

0 votes
0 votes
garbage value.

Related questions

0 votes
0 votes
0 answers
1
Sahil Raza asked Oct 4, 2018
222 views
Is it necessary to write #include at the begining of C program? If is not ? Why ?
0 votes
0 votes
1 answer
2
Deucalion_sash asked May 25, 2022
1,180 views
I am a past student of Made Easy and got AIR 7500 in GATE 2022.I would like to get suggestions.
1 votes
1 votes
0 answers
3
0 votes
0 votes
0 answers
4
Hirak asked Apr 5, 2019
159 views
Can Layer 3 firewall block ports?