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 / mishra

Its showing error on first line in HPUX.

char *p='a';
Error:-
======
error 1522: Cannot initialize a pointer with an integer
constant other than zero.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1877


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

635


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

1693


What is stl stack?

656


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

2087






What are stl algorithms?

614


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

1640


What is stl language?

666


Explain stl.

898


how to use C++?

2061


How connect plc and pc through software

1911


What are the various types of stl containers?

725


how to making game in c++ ?

2174


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

2493


What is the stl, standard template library?

590