DIFFERENCE BETWEEN STRUCT AND UNION:
In structures,each member has its own storage location,whereas all memebers of a union use
the same location.this implies that,although a union may contain many members of different types,it can handle only one member at a time.
ex: struct book
{
char title[20];
char author[15];
int pages;
float price;
}
ex: union item
{
int m;
float x;
char c;
}code;
Popular Posts
-
What Is Visual Basic and Why do I need it? Visual Basic is Easy to learn Programming language. With Visual Basic you can develop Windows bas...
-
The SQL ORDER BY clause comes in handy when you want to sort your SQL result sets by some column(s). For example if you want to select all t...
-
Defined data types (typedef) C++ allows the definition of our own types based on other existing data types. We can do this using the keyword...
-
The page directive lets you define one or more of the following case-sensitive attributes: * import="package.class" or import=...
-
JSP pages are high level extension of servlet and it enable the developers to embed java code in html pages. JSP files are finally compiled ...
-
SQL Server Express is a free, easy to use, redistributable version of SQL Server 2005 designed for building simple data-driven applications....
-
The SQL SELECT INTO statement is used to select data from a SQL database table and to insert it to a different table at the same time. The g...
-
1 Introducing the .NET Framework with C# The .NET Framework is such a comprehensive platform that it can be a little difficult to descr...
-
In previous chapters, you learned to how to connect to SQL Server 2005 using management studio. In this chapter, you will learn how to creat...
-
Now I will show you how to retrieve the data posted from a HTML file in a JSP page. Consider an html page that prompts the user to enter his...
No comments:
Post a Comment