retagged by
767 views

1 Answer

Best answer
2 2 votes

C.  6 5

 

sizeof("Hello") = 6.

strlen("Hello") = 5. 

 

https://ideone.com/oi9ANE

edited by
Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
621
621 views
Bikram asked May 14, 2017
621 views
What will be the output of the below program ?#include <stdio.h int main() { struct node { int x; int y; int z; }; struct node s = { 3, 5, 6 }; struct node *pt = &s; prin...
3 3 votes
2 answers 2 answers
1.3k
1.3k views
Bikram asked May 14, 2017
1,272 views
What is the output of this program?#include <stdio.h int main() { char *ptr; char string[] = "How are you?"; ptr = string; ptr += 4; printf("%s",ptr); return 0; }How are ...
0 0 votes
1 1 answer
590
590 views
Bikram asked May 14, 2017
590 views
#include<stdio.h int K = 10; int main() { foo(); foo(); return 0; } int foo() { static int k= 1; printf("%d ",k); k++; return 0; }What is the output of the above code sni...
0 0 votes
1 1 answer
551
551 views
Bikram asked May 14, 2017
551 views
What is the output of the following program? int fun (int z) { if( z==0 || z==1 ) return 1; else return fun(z-1) ; } int main() { int y; y=fun(8); printf(“%d”, y)...