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 / anita sachdeva

yes,
*p='a'
*i=100/*p i.e. 100/97
=1
hence *i=1

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1879


What is stl in oop?

666


What is a standard template library (stl)?

633


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2082


totoo po ba ang manga aliens!

2325






When did c++ add stl?

719


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1692


Name the different types of stl containers.

683


What is stl in c++ with example?

627


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1881


Explain stl.

897


What is stl stack?

652


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2848


Is stl open source?

623


what is template and type convertion

1988