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 / madhu
D) NONE OF THE ABOVE
COZ
ANS IS A=101n (*p)=101n
to get this *p should be an constant pointer
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the use of pointers in C?
Differentiate abs() function from fabs() function.
What is sorting in c plus plus?
explain what is a newline escape sequence?
Can we change the value of constant variable in c?
Which of these functions is safer to use : fgets(), gets()? Why?
How can a program be made to print the line number where an error occurs?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
How can I generate floating-point random numbers?
Explain setjmp()?
What are inbuilt functions in c?
Which programming language is best for getting job 2020?
What header files do I need in order to define the standard library functions I use?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix