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
How to implement a packet in C
What is the data segment that is followed by c?
What is the symbol indicated the c-preprocessor?
How can I find out how much free space is available on disk?
Where in memory are my variables stored?
What is difference between static and global variable in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Is main an identifier in c?
Explain how does flowchart help in writing a program?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is an array in c?
What is the difference between mpi and openmp?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
can anyone suggest some site name..where i can get some good data structure puzzles???
What is a nested loop?