Dangling pointer

A pointer pointing to an object that has been destroyed is called a Dangling pointer.


main( )
{
int *p ;
int *fun( ) ;
p = fun( ) ;
printf ( "%d", *p ) ;
}

int *fun( )
{
int a = 10 ;
return ( &a ) ;
}
Here it appears that address of a would be collected in p and through *p we would be able to access 10. This however is not possible because by the time address of a is collected in p, a is already dead. So you have a pointer containing an address, and the object at this address is long dead. Thus p becomes dangling pointer.


how to change ur windows desktop by upside down.


In windows XP, Right click the desktop,
A Pop up menu will be opened.
Select the graphics options.
- >Graphics properties- >tab- >Enable the rotation.
--> Rotation Views select the rotation degree as 180 Degree and click Apply.

Ur Window Desktop will be like this


To change this view to normal
Right click the desktop,
A Pop up menu will be opened.
Select the graphics options.
- >Graphics properties- >tab- >Enable the rotation.
--> Rotation Views select the rotation degree as Normal and click Apply.
It will become normal


how to find java versions in your computer

In the command prompt type the following
>java -version
you will get the version.








How to create a XML DTD for displaying student details


XML  is  eXtensible Markup Language which is used to create used defined tags. 
It has
  • Elements  ( <STUDENT>)
  • Attributes (<STUDENT id="21it21">)
To create a XML file, create three files
1 ->  XML file (used to declare the user defined tags)
2 ->  DTD file (used to define the user defined tags)
3 ->  HTML file(used to display the xml file as web page)

create these three files using any editor like notepad. 

Student.Xml
<?xml version="1.0"?>
<!DOCTYPE STUDENTS SYSTEM "E:\XML1\STUDENT.dtd">
<STUDENTS>
 <STUDENT>
 <STUDENTDATA>
    <NAME> SUTHA </NAME>
    <ID>  2007IT51 </ID>
    <AGE> 20 </AGE>
    <ADDRESS> 12,SATHY ROAD,GOBI </ADDRESS>
  </STUDENTDATA>
</STUDENT>
</STUDENTS>

Student.dtd
<?xml version="1.0"?>
<!ELEMENT STUDENTS (STUDENT*)>
<!ELEMENT STUDENT (STUDENTDATA*)>
<!ELEMENT STUDENTDATA (NAME,ID,AGE,ADDRESS)>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT ID (#PCDATA)>
<!ELEMENT AGE (#PCDATA)>
<!ELEMENT ADDRESS (#PCDATA)>

Student.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"E:\XML1\STUDENT.dtd"">
<html>
<head COLOR:RED><h1 style="color:red">
<MARQUEE DIRECTION="RIGHT"><CENTER> COLLEGE OF ENGINEERING AND TECHNOLOGY </CENTER> </MARQUEE> </H1>
<title> STUDENT DETAILS DISPLAY </title>
</head>
<body style="background-color:PINK"> <H2 STYLE="COLOR: BLUE"> <MARQUEE><CENTER>DEPARTMENT OF INFORMATION TECHNOLOGY </CENTER> </MARQUEE><BR></H2>
<MARQUEE DIRECTION="DOWN"><H3 STYLE= "COLOR:GREEN"><CENTER>FINAL IT STUDENTS DETAILS  </CENTER></MARQUEE><BR><BR></H3>
<CENTER><TABLE BORDER="1">
<THEAD>
<TR>
<TH> NAME </TH>
<TH> ID  </TH>
<TH> AGE  </TH>
<TH> ADDRESS  </TH>
</TR>
</THEAD>
<TFOOT>
<TR>
<TH COLSPAN="4"> STUDENT CATALOG</TH>
</TFOOT>
<TR>
 <TD>SUTHA </TD>
 <TD>2007IT51</TD>
 <TD>20</TD>
 <TD>12,SATHY ROAD,GOBI</TD>
</TR>
</TABLE></CENTER>
</body>
</html>

Run the html file in any browser like Internet explorer....
output will be like this


some different internet terms with meaning


annie 
    A Website or particular Web page that has not been updated in a long time.
anon server
    A service provider that forwards email while concealing the identity of the sender.


Archie
    A type of search engine used to retrieve FTP files stored on anonymous sites. The user must have the exact file name.                                                                                
ARCnet    
    (Attached Resource Computer network)  which is a simple and economical type of local area network using token ring architecture.
                                                                       
AUTOEXEC.BAT
      (Automatically Executed Batch Files) DOS files that automatically execute when  the computer boots up.                                                                                                                                                
 assicons 
      It is a funny variation on smileys.
 bot
       bots are to locate information on the World Wide Web and for the automatic collection of email addresses.                                                                             



how to turn off your system storage

XP keeps a backup of system files in the System Volume Information folder. This eats up valuable space on your hard, drive.

If you don't want Windows to back them up;

Step1:
Go to Control Panel > System > System
Restore.
 Check " Turn of System Restore".

Step2:
Delete the System Volume Information Folder.