The document defines and describes various data types in the C programming language. It discusses integer data types like char, short int, int, long int; floating point data types like float, double, long double; void data type; and derived data types like arrays, pointers, structures, unions, enumerated data types, and user-defined data types using typedef. Each data type is explained along with its size, range of values it can hold, and examples.
C Programming/Strings. A string in C is merely an array of characters. The length of a string is determined by a terminating null character: '-' . So, a string with the contents, say, "abc" has four characters: 'a' , 'b' , 'c' , and the terminating null character.
Hello there, this powerpoint presentation is made by Ansh kashyap(me) the topic of this presentation is "Data types in C".
Data types used in C language refer to an extensive system that we use to declare various types of functions or variables in a program. Here, on the basis of the type of variable present in a program, we determine the space that it occupies in storage, along with the way in which the stored bit pattern will be interpreted.
A data type specifies the type of data that a variable can store such as integer, floating, character, etc.
An enumeration (enum) is a user-defined type (same as structure) that represents a group of constants. typedef is a keyword used to create alias name for the existing datatypes.
Introduction to control structure in C Programming Language include decision making (if statement, if..else statement, if...else if...else statement, nested if...else statement, switch...case statement), Loop(for loop, while loop, do while loop, nested loop) and using keyword(break, continue and goto)
C Programming/Strings. A string in C is merely an array of characters. The length of a string is determined by a terminating null character: '-' . So, a string with the contents, say, "abc" has four characters: 'a' , 'b' , 'c' , and the terminating null character.
Hello there, this powerpoint presentation is made by Ansh kashyap(me) the topic of this presentation is "Data types in C".
Data types used in C language refer to an extensive system that we use to declare various types of functions or variables in a program. Here, on the basis of the type of variable present in a program, we determine the space that it occupies in storage, along with the way in which the stored bit pattern will be interpreted.
A data type specifies the type of data that a variable can store such as integer, floating, character, etc.
An enumeration (enum) is a user-defined type (same as structure) that represents a group of constants. typedef is a keyword used to create alias name for the existing datatypes.
Introduction to control structure in C Programming Language include decision making (if statement, if..else statement, if...else if...else statement, nested if...else statement, switch...case statement), Loop(for loop, while loop, do while loop, nested loop) and using keyword(break, continue and goto)
● Introduction to components of a Computer System
● Introduction to Algorithm and Flowchart
● Keywords, Identifiers, Constants and Variables
● Data types in C
● Operators in C
● Basic Input and Output Operations
● Expressions and Precedence of Operators
● In-built Functions
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
2. DATA TYPES
In the C Programming language, data types are defined as the
data storage format that a variable can store a data to
perform a specific operation and are used to define a
variable before to use in a program.
The type of a variable determines how much space it occupies in
storage and how the bit pattern stored is interpreted.
2
3.
4.
5. Name Description Size*
Example with syntax
Range*
char Character or small integer. 1 byte
char a=”abc”;
signed: -128 to 127
unsigned: 0 to 255
short int (short) Short Integer. 2 bytes
short int a;
signed: -32768 to 32767
unsigned: 0 to 65535
int Integer. 4 bytes
int s=10; signed: -2147483648 to
2147483647
unsigned: 0 to
4294967295
long int (long) Long integer. 4 bytes
long int s; signed: -2147483648 to
2147483647
unsigned: 0 to
4294967295
float Floating point number. 4 bytes
float s=10.256;
+/- 3.4e +/- 38 (~7
digits)
double
Double precision floating
point number.
8 bytes
double a=20.3568545
+/- 1.7e +/- 308 (~15
digits)
long double
Long double precision
floating point number.
8 bytes
Long double a;
+/- 1.7e +/- 308 (~15
digits)
5
6. INT DATA TYPE
Integers are whole numbers with a range of values, range of values are
machine dependent. Generally an integer occupies 2 bytes memory space
and its value range limited to -32768 to +32767.
Eg: int i=10;
6
7. CHAR DATA TYPE
Character type variable can hold a single character. As there
are singed and unsigned int (either short or long), in the same
way there are signed and unsigned chars; both occupy 1 byte
each, but having different ranges.
Unsigned characters have values between 0 and 255
signed characters have values from –128 to 127.
Eg: char a=”abc”;
7
8. FLOAT DATA TYPE
The float data type is used to store fractional numbers (real numbers) with 6
digits of precision. Floating point numbers are denoted by the keyword float.
When the accuracy of the floating point number is insufficient,one can use the
double to define the number. The double is same as float but with longer
precision and takes double space (8 bytes) than float. To extend the precision
further we can use long double which occupies 10 bytes of memory space.
Eg: float a=3.10;
8
9. VOID DATA TYPE
The void type has no values therefore we cannot declare it as
variable as we did in case of integer and float. The void data type is
usually used with function to specify its type. Like in our first C
program we declared "main ()" as void type because it does not
return any value.
Eg: void main();
9
10. DERIVED DATA TYPE
Array: An array in C language is a collection of similar data-type, means an
array can hold value of a particular data type for which it has been declared.
Arrays can be created from any of the basic C data-types .
Eg: int a[10];
String variable contains a collection of characters surrounded by
double quotes. e.g string greeting = "Hello";
Pointer: C Pointer is a special variable that can be used to store address of
another variable using & operator. * operator is used to assign
memory location to a
Eg: *int a;
10
11. Function
It is a block of code which only runs when it is called. And can pass data, known as
parameters, into a function.Functions are used to perform certain actions, and they are
important for reusing code: Define the code once, and use it many times.
C provides some pre-defined functions, such as main(), which is used to execute code. But you
can also create your own functions to perform certain actions.
To create (often referred to as declare) a function, specify the name of the function, followed
by parentheses ()
Syntax: return type function name(argument list);
Eg: void myFunction() {
// code to be executed
}
11
12. STRUCTURE DATA TYPE
CStructure isa collection of different data types which are grouped together and
each element in a C structure is called member.
Example:
struct student { int roll_no;
char name[20];
char city[20];
}
12
13. Union
It defines a type that contains a value that can be interpreted as different
types.
as it contains variables that uses the same space in the memory.
Its syntax is:
union union_name{
type1 name1;
type2 name2;
...
}
e.g union secretCode{
int i;
char str[4];
}
13
14. User defined Data Types:ENUMERATED DATA TYPE
(ENUM)
Enumerated data type is a user defined data type having finite set of
enumeration constants. The keyword 'enum' is used to create enumerated data
type. Enumeration data type consists of named integer constants as a list.
It start with 0 (zero) by default and value is incremented by 1 for the sequential
identifiers in the list.
Syntax:
Enum [data_type] {const1, const2… constn};
Eg: enum month {Jan,Feb, Mar };or /* Jan, Feb and Mar variables will be
assigned to 0, 1 and 2 respectively by default */
enum month {Jan= 1, Feb, Mar };/* Feb and Mar variables will be assigned to 2
and 3 respectively by default */
enum month {Jan = 20, Feb,Mar };/* Jan is assigned to 20. Feb and Mar
variables will be assigned to 21 and 22 respectively by default */ 14
15. TYPEDEF DATA TYPE
It is used to create new data type. But it is commonly used to change existing data
type with another name.
Syntax:
typedef [data_type] new_data_type;
here data_type is the basic type you want to substitute, while new_ data_type is the
name you want to give to it.
Eg:
typedef int integer;
integer roll_no;
15