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 / divakar

ouput will be c)a=101 (*p)=101

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does pointer work in c?

612


Can include files be nested? How many levels deep can include files be nested?

651


What is infinite loop?

624


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1785


Can we initialize extern variable in c?

626






What are the preprocessor categories?

633


What are dangling pointers in c?

633


Why c language is called c?

567


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

645


Does c have an equivalent to pascals with statement?

569


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

561


Explain how to reverse singly link list.

603


Differentiate between the expression “++a” and “a++”?

697


Is flag a keyword in c?

676


What do you mean by Recursion Function?

626