study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above
Answer Posted / sridevi.halli
answer is d)none of the above
bcoz in line p=&a it will gve error
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is strcpy() function?
What does 3 mean in texting?
What is a wrapper function in c?
What is an identifier?
What are valid operations on pointers?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Where are local variables stored in c?
What is build process in c?
What are the three constants used in c?
What is variable initialization and why is it important?
what is bit rate & baud rate? plz give wave forms
When would you use a pointer to a function?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is c language in simple words?
Can you add pointers together? Why would you?