SlideShare a Scribd company logo
1 of 16
SESSION(2023-2024)
A SEMINAR
ON
“APPLET & APPLET LIFE CYCLE”
SUBMITTED INPARTIAL FULFILLMENT OF THE REQUIREMENT FOR AWARD
OF MASTER OF SCIENCE OF COMPUTER SCIENCE
Guided By : Submitted By :
Mr. Faijul Huda Sanju Sanjeev Toppo
(Ass. Prof..of IT Dep..) Msc .Cs III Semester
Roll No. : 09
21-11-2023
KR TECHNICAL COLLEGE AMBIKAPUR
CONTENT
 Structure.
 Union.
INTRODUCTION
 Structure in c is a user-defined data type that enables us
to store the collection of different data types. Each
element of a structure is called a member.
 The struct keyword is used to define the structure.
Syntax : Example :
struct structure_name
{
data_type1 member_name1;
data_type2 member_name2;
.
.
data_typeN member_nameN;
};
struct employee
{ int id;
char name[10];
float salary;
};
MEMORY ALLOCATION :
STRUCTURE DECLARATION
 A structure can be declared using three different ways as
shown :
TAGGED STRUCTURE
STRUCTURE
VARIABLES
TYPE DEFINED
STRUCTURE
 The structure definition associated with strucutre name is
called tagged strucutre.
Syntax : Example :
TAGGED STRUCTURE
struct tag_name
{
data_type1 member_name1;
data_type2 member_name2;
…… …….
…… …….
data_typeN member_nameN;
};
struct student
{ int rollno;
char name[10];
float avg;
};
STRUCTURE VARIABLES
Syntax : Example :
struct
{
data_type1 member_name1;
data_type2 member_name2;
…… …….
…… …….
data_typeN member_nameN;
}
variable1, variable2,variableN;
struct
{ int empno;
char ename[30];
long int salary;
}
emp1, emp2;
The strucutre defined associated with keyword
typedef is called type-defined structure.This is the
most powerfull way of defining the structure.
TYPE DEFINED STRUCTURE
Syntax : Example :
typedef struct
{
data_type1 member_name1;
data_type2 member_name2;
…… …….
…… …….
data_typeN member_nameN;
}
TYOE_ID;
typedef struct
{ char cname[26];
int cid;
int run;
long int score;
}
CRICKETER;
Syntax :
struct tag_name variable = {mv1,mv2,mvn};
Example :
struct employee
{
char name[20];
int salary;
int id;
}a={“Hemant”,10000,420};
STRUCTURE INITIALIZATION
There are two ways to access structure members:
1. By . (member or dot operator)
2. By -> (structure pointer operator)
Syntax :
p1.id
ACCESSING STRUCTURE
PROGRAM :
#include<stdio.h>
#include <conio.h>
struct employee
{
int id;
char name[50];
}e1;
void main( )
{
e1.id=420;
strcpy(e1.name,“Hemant Yadav”);
printf( "employee 1 id : %dn", e1.id);
printf( "employee 1 name : %sn", e1.name);
getch();
}
OUTPUT :
employee 1 id : 420
employee 1 name : Hemant Yadav
 A union is a special data type available in C that allows to store
different data types in the same memory location. You can define a
union with many members, but only one member can contain a value
at any given time. Unions provide an efficient way of using the same
memory location for multiple-purpose.
Syntax : Example :
union [union tag]
{
member definition;
member definition;
...
member definition;
} [one or more union variables];
UNION
union Data
{
int i;
float f;
char str[20];
} data;
MAJOR DIFFERENCE
DIFFERENCE BETWEEN STRUCTURE & UNION
THANK YOU…!

More Related Content

Similar to Javaadvance applet and applet life cycle.pptx

Data Structure & Algorithm - Self Referential
Data Structure & Algorithm - Self ReferentialData Structure & Algorithm - Self Referential
Data Structure & Algorithm - Self Referential
babuk110
 
data structure and c programing concepts
data structure and c programing conceptsdata structure and c programing concepts
data structure and c programing concepts
kavitham66441
 
Cs1123 12 structures
Cs1123 12 structuresCs1123 12 structures
Cs1123 12 structures
TAlha MAlik
 

Similar to Javaadvance applet and applet life cycle.pptx (20)

Structures
StructuresStructures
Structures
 
Data Structure & Algorithm - Self Referential
Data Structure & Algorithm - Self ReferentialData Structure & Algorithm - Self Referential
Data Structure & Algorithm - Self Referential
 
Unit 5 (1)
Unit 5 (1)Unit 5 (1)
Unit 5 (1)
 
Structure In C
Structure In CStructure In C
Structure In C
 
Structures
StructuresStructures
Structures
 
structure.ppt
structure.pptstructure.ppt
structure.ppt
 
Easy Understanding of Structure Union Typedef Enum in C Language.pdf
Easy Understanding of Structure Union Typedef Enum in C Language.pdfEasy Understanding of Structure Union Typedef Enum in C Language.pdf
Easy Understanding of Structure Union Typedef Enum in C Language.pdf
 
Chapter 8 Structure Part 2 (1).pptx
Chapter 8 Structure Part 2 (1).pptxChapter 8 Structure Part 2 (1).pptx
Chapter 8 Structure Part 2 (1).pptx
 
CP Handout#10
CP Handout#10CP Handout#10
CP Handout#10
 
Structures and Pointers
Structures and PointersStructures and Pointers
Structures and Pointers
 
Structures
StructuresStructures
Structures
 
Structure in C
Structure in CStructure in C
Structure in C
 
data structure and c programing concepts
data structure and c programing conceptsdata structure and c programing concepts
data structure and c programing concepts
 
CHAPTER -4-class and structure.pptx
CHAPTER -4-class and structure.pptxCHAPTER -4-class and structure.pptx
CHAPTER -4-class and structure.pptx
 
Cs1123 12 structures
Cs1123 12 structuresCs1123 12 structures
Cs1123 12 structures
 
12Structures.pptx
12Structures.pptx12Structures.pptx
12Structures.pptx
 
Ch7 structures
Ch7 structuresCh7 structures
Ch7 structures
 
Structures in C
Structures in CStructures in C
Structures in C
 
Lab 13
Lab 13Lab 13
Lab 13
 
Structure & Union in C++
Structure & Union in C++Structure & Union in C++
Structure & Union in C++
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 

Javaadvance applet and applet life cycle.pptx

  • 1. SESSION(2023-2024) A SEMINAR ON “APPLET & APPLET LIFE CYCLE” SUBMITTED INPARTIAL FULFILLMENT OF THE REQUIREMENT FOR AWARD OF MASTER OF SCIENCE OF COMPUTER SCIENCE Guided By : Submitted By : Mr. Faijul Huda Sanju Sanjeev Toppo (Ass. Prof..of IT Dep..) Msc .Cs III Semester Roll No. : 09 21-11-2023 KR TECHNICAL COLLEGE AMBIKAPUR
  • 3. INTRODUCTION  Structure in c is a user-defined data type that enables us to store the collection of different data types. Each element of a structure is called a member.  The struct keyword is used to define the structure. Syntax : Example : struct structure_name { data_type1 member_name1; data_type2 member_name2; . . data_typeN member_nameN; }; struct employee { int id; char name[10]; float salary; };
  • 5. STRUCTURE DECLARATION  A structure can be declared using three different ways as shown : TAGGED STRUCTURE STRUCTURE VARIABLES TYPE DEFINED STRUCTURE
  • 6.  The structure definition associated with strucutre name is called tagged strucutre. Syntax : Example : TAGGED STRUCTURE struct tag_name { data_type1 member_name1; data_type2 member_name2; …… ……. …… ……. data_typeN member_nameN; }; struct student { int rollno; char name[10]; float avg; };
  • 7. STRUCTURE VARIABLES Syntax : Example : struct { data_type1 member_name1; data_type2 member_name2; …… ……. …… ……. data_typeN member_nameN; } variable1, variable2,variableN; struct { int empno; char ename[30]; long int salary; } emp1, emp2;
  • 8. The strucutre defined associated with keyword typedef is called type-defined structure.This is the most powerfull way of defining the structure. TYPE DEFINED STRUCTURE Syntax : Example : typedef struct { data_type1 member_name1; data_type2 member_name2; …… ……. …… ……. data_typeN member_nameN; } TYOE_ID; typedef struct { char cname[26]; int cid; int run; long int score; } CRICKETER;
  • 9. Syntax : struct tag_name variable = {mv1,mv2,mvn}; Example : struct employee { char name[20]; int salary; int id; }a={“Hemant”,10000,420}; STRUCTURE INITIALIZATION
  • 10. There are two ways to access structure members: 1. By . (member or dot operator) 2. By -> (structure pointer operator) Syntax : p1.id ACCESSING STRUCTURE
  • 11. PROGRAM : #include<stdio.h> #include <conio.h> struct employee { int id; char name[50]; }e1; void main( ) { e1.id=420; strcpy(e1.name,“Hemant Yadav”); printf( "employee 1 id : %dn", e1.id); printf( "employee 1 name : %sn", e1.name); getch(); }
  • 12. OUTPUT : employee 1 id : 420 employee 1 name : Hemant Yadav
  • 13.  A union is a special data type available in C that allows to store different data types in the same memory location. You can define a union with many members, but only one member can contain a value at any given time. Unions provide an efficient way of using the same memory location for multiple-purpose. Syntax : Example : union [union tag] { member definition; member definition; ... member definition; } [one or more union variables]; UNION union Data { int i; float f; char str[20]; } data;