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 a list in c++ stl?

696


Why should a c++ programmer be interested in stl?

647


Can we use stl in coding interviews?

1284


Is string part of stl?

681


What is a stl vector?

628






Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1648


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

1702


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

2097


What is stl stand for?

742


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

1897


What is stl language?

682


What are the various types of stl containers?

738


please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

1777


How connect plc and pc through software

1923


Is stl open source?

638