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


Please Help Members By Posting Answers For Below Questions

How to implement a packet in C

2599


What is the data segment that is followed by c?

817


What is the symbol indicated the c-preprocessor?

928


How can I find out how much free space is available on disk?

811


Where in memory are my variables stored?

826


What is difference between static and global variable in c?

747


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1450


Is main an identifier in c?

830


Explain how does flowchart help in writing a program?

848


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.

1694


What is an array in c?

771


What is the difference between mpi and openmp?

973


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

940


can anyone suggest some site name..where i can get some good data structure puzzles???

1835


What is a nested loop?

854