Question: What will be the output of following program? Why? #include #include int main() { char str[] = Rendezvous!; printf(%d , *(str+strlen(str))); return 0; } I

What will be the output of following program? Why?

#include

#include

int main()

{

char str[] = "Rendezvous!";

printf("%d ", *(str+strlen(str)));

return 0;

}

I know the result will be 0 but why? can any one help please

----------------------------------------------------------------------------------------

What happens if you declare the parameter as:

int *arr[10]

and not as:

int (*arr)[10] ?

i don't know the answer for this one

--------------------------------------------------------------------------------------

both of these cods are in C and i need help with them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!