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

Who wrote stl?

921


What are the different types of stl containers?

905


How do I convert a stl file?

812


sir please send me bpcl previous question papers

2187


What is stl in oop?

970


In what scenario does the Logical file and Physical file being used?

2583


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

2757


Define stl.

1063


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

3137


What are the components of stl?

886


Who created stl?

905


When did c++ add stl?

975


How connect plc and pc through software

2205


What are the symptoms of stl?

869


What is a list in c++ stl?

921