






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of data types in c programming language, including built-in and derived data types, rules for constructing identifiers, and examples of using fundamental and derived data types. Learn about int, char, float, double, pointers, arrays, strings, structures, and more.
Typology: Slides
1 / 13
This page cannot be seen from the preview
Don't miss anything!







Identifiers refer to the names of data types, constants, variables, and functions
int elevationIndicator; char inputSymbol; float totalCost;
int main (void) { double grossProduct; int *temperatureValuePtr;
grossProduct = 4567.89; inputSymbol = 'a';
return (0); } // End main
int elevationTable[20];
char inputSymbols[] = "Hello World";
struct operationsStruct { double heatReading; int temperatureValue; float speedMeter; char actionCode; }; // End struct
struct operationsStruct currentOperations;
currentOperations.speedMeter = 245.6; currentOperations.temperatureValue = 67; currentOperations.actionCode = 'z';
latestReading = currentOperations.heatReading;
statusFactor = currentOperations.speedMeter * currentOperations.temperatureValue;
futureOperations = currentOperations;
printf("Temp: %d Code: %c\n", futureOperations.temperatureValue, futureOperations.actionCode);
๏