The basic formatting that can be applied to a webpage is for the text. By default, the Times Roman forn at 12 points is used. This can be changes according to our desire by using the FONT tag as shown belo
FACE : allows you to specify the font name like Times Roman, Courier, Arial etc.
SIZE: allows you to give a number from 1 (size 8 points) to 7 (size 36 points).
COLOR: allows you to specify the name of the color you wish to apply to the text.
LEARN MORE>>
Showing posts with label Elements. Show all posts
Showing posts with label Elements. Show all posts
Structures.....cont(1)
Initializing Structure Elements
The elements of a structure van be initialized either seperately using seperate assignment statements or jointly using the notation similar to that used for initializing arrays. The example given below demonstrates how structure elements can be initialized jointly or seperately.
struct student
{
int rollno;
char name[20];
short clas; // class is a reserved word of C++
float marks;
char grade;
} stud1, stud2;
LEARN MORE>>
The elements of a structure van be initialized either seperately using seperate assignment statements or jointly using the notation similar to that used for initializing arrays. The example given below demonstrates how structure elements can be initialized jointly or seperately.
struct student
{
int rollno;
char name[20];
short clas; // class is a reserved word of C++
float marks;
char grade;
} stud1, stud2;
LEARN MORE>>
Structured Data Type: Arrays
Arrays are a series of elements (variables) of the same type placed consecutively in memory that can be individually referenced by adding an index to a unique name.
An Array declaration is very similar to a variable declaration. For eg:
float annual_temp[10];
This will cause the compiler to allocate space for 10 consecutive float variables in memory. The number of elements in an array must be fixed at compile time. The elements of an array are ordered by the index. Array index numbering starts from zero. LEARN MORE>>
An Array declaration is very similar to a variable declaration. For eg:
float annual_temp[10];
This will cause the compiler to allocate space for 10 consecutive float variables in memory. The number of elements in an array must be fixed at compile time. The elements of an array are ordered by the index. Array index numbering starts from zero. LEARN MORE>>
Subscribe to:
Posts (Atom)