Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the use of pointers in C?

1028


Differentiate abs() function from fabs() function.

965


What is sorting in c plus plus?

928


explain what is a newline escape sequence?

1043


Can we change the value of constant variable in c?

1008


Which of these functions is safer to use : fgets(), gets()? Why?

1046


How can a program be made to print the line number where an error occurs?

1038


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2404


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

1648


How can I generate floating-point random numbers?

1048


Explain setjmp()?

1011


What are inbuilt functions in c?

987


Which programming language is best for getting job 2020?

986


What header files do I need in order to define the standard library functions I use?

1001


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

1954