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 template and type convertion

1999


What is the stl, standard template library?

600


how to making game in c++ ?

2183


How do you convert stl to steps?

635


Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister

1664






What is stl stack?

665


Is string part of stl?

681


How do I convert a stl file?

568


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


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 language?

678


What is stl stand for?

742


Who created stl?

656


Is stl open source?

636


What two types of containers does the stl provide?

573