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
How does pointer work in c?
Can include files be nested? How many levels deep can include files be nested?
What is infinite loop?
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.
Can we initialize extern variable in c?
What are the preprocessor categories?
What are dangling pointers in c?
Why c language is called c?
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.
Does c have an equivalent to pascals with statement?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Explain how to reverse singly link list.
Differentiate between the expression “++a” and “a++”?
Is flag a keyword in c?
What do you mean by Recursion Function?