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
What is uint8 in c?
How do you print only part of a string?
How can I split up a string into whitespace-separated fields?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Describe the order of precedence with regards to operators in C.
Is it fine to write void main () or main () in c?
Is c high or low level?
What is nested structure with example?
Write a program to swap two numbers without using third variable in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is abstract data structure in c?
Explain how can I convert a number to a string?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is NULL pointer?
Explain void pointer?