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 / hima bindu sudhani
The answer is A)100, 101
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is the use of static variable in c?
Which header file is essential for using strcmp function?
What is a program flowchart?
How to explain the final year project as a fresher please answer with sample project
what will be maximum number of comparisons when number of elements are given?
What is modeling?
What is difference between structure and union with example?
Explain modulus operator.
What are multidimensional arrays?
what are the advantages of a macro over a function?
Do variables need to be initialized?
If the size of int data type is two bytes, what is the range of signed int data type?
Why does everyone say not to use gets?
When c language was developed?
What is meant by int main ()?