Give the output of the following program
main()
{char *p='a';
int *i=100/*p;
}
what will be the value of *i= 1


Answer Posted / srinivasa. p

No,

It should give error.
1. char* not suppose to assign character.
2. and int *..assign to reference or allocate memory.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stl in c++ with example?

630


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1849


What is meant by stl in c++?

648


how to making game in c++ ?

2174


What is stl stand for?

729






What two types of containers does the stl provide?

566


Name the different types of stl containers.

685


What are the components of stl?

613


What is the use of stl?

627


Who created stl?

643


What is stl in oop?

671


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

1877


What are the various types of stl containers?

725


What are stl algorithms?

614


How does an stl file work?

641