C Programming :: Arrays - Discussion
Home > C Programming > Arrays > MCQs Questions Discussion
37 / 55
What will be output of the following "c" code?
#include<stdio.h>
void main()
{
char s[]={'a', 'b', 'c', '\n', 'c', '\0'};
char *p, *str, *str1;
p= &s[3];
str= p;
str1= s;
printf("%d", ++*p++*str1-32);
}
#include<stdio.h>
void main()
{
char s[]={'a', 'b', 'c', '\n', 'c', '\0'};
char *p, *str, *str1;
p= &s[3];
str= p;
str1= s;
printf("%d", ++*p++*str1-32);
}
ACompilation Error: invalid operands to binary *
Ba
CSegmentation fault
DB
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!