void main()
{
int const * p=5;
printf("%d",++(*p));
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we
tried to change the value of the "constant integer".
| Is This Answer Correct ? | 79 Yes | 10 No |
Answer / mahe
5
pointer value does not change.so print thier value
| Is This Answer Correct ? | 3 Yes | 8 No |
Answer / jambalakadi pamba
here...p is a pointer which is pointing to a addresss which is constant....!!! so the output is 6
| Is This Answer Correct ? | 8 Yes | 22 No |
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
main() { 41printf("%p",main); }8
main() { char *p="GOOD"; char a[ ]="GOOD"; printf("\n sizeof(p) = %d, sizeof(*p) = %d, strlen(p) = %d", sizeof(p), sizeof(*p), strlen(p)); printf("\n sizeof(a) = %d, strlen(a) = %d", sizeof(a), strlen(a)); }
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
main() { printf("%x",-1<<4); }
how can i cast a char type array to an int type array
Link list in reverse order.
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
how to check whether a linked list is circular.
To reverse an entire text file into another text file.... get d file names in cmd line
void main() { int i=5; printf("%d",i++ + ++i); }
Finding a number which was log of base 2