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 / santhoo035
d)None of the above
It will give compliation error at the line p=&a,pointer to
integer cannot assign to const int
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
Explain about block scope in c?
how to build a exercise findig min number of e heap with list imlemented?
how to count no of words,characters,lines in a paragraph.
What do you mean by a sequential access file?
Explain what will the preprocessor do for a program?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What do header files do?
What is #line?
What does d mean?
Write a factorial program using C.
When do we get logical errors?
Can the “if” function be used in comparing strings?
What is the acronym for ansi?
How can I find the modification date of a file?
Explain logical errors? Compare with syntax errors.