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

What is meant by recursion?

632


the question is that what you have been doing all these periods (one year gap)

1617


How can I do serial ("comm") port I/O?

689


What is binary tree in c?

622


What is an endless loop?

802






1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3982


Why C language is a procedural language?

623


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

665


Differentiate between static and dynamic modeling.

620


What do the functions atoi(), itoa() and gcvt() do?

724


What is advantage of pointer in c?

692


What are the differences between Structures and Arrays?

609


What is a program flowchart?

605


What does the format %10.2 mean when included in a printf statement?

1087


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

604