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 does stl stand for in basketball?

854


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

2017


What is stl in oop?

951


What are the symptoms of stl?

839


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

2145


How do I convert a stl file?

781


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

2377


Is string part of stl?

962


How stl is different from the c++ standard library?

864


What two types of containers does the stl provide?

765


Who created stl?

880


What is the stl, standard template library?

842


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2738


What are the components of stl?

865


What are the different types of stl containers?

880