Skip to main content

PRIMARY DATA TYPES

DATA TYPES IS VERY IMPORTANT PART OF C LANGUAGE OR ANY OTHER LANGUAGE .
WITHOUT USING DATA TYPE YOU CANNOT UNDERSTAND THE TYPE OF ANY GIVEN DATA . DATA TYPE HELPS TO UNDERSTAND THE DATA WHICH YOU ARE INPUT FROM THE KEYBOARD , IT IS NUMERIC TYPE , CHARACTER TYPE OR DECIMAL TYPE .

*DATA TYPES:-

                            DIFFERENT TYPES OF DATA ARE COULD BE USED IN ANY LANGUAGE , IS CALLED ITS DATA TYPE .

for example:-  name will always be alphabetic data , age is numeric data type , etc .


HERE WE SHALL DISCUSS ABOUT VARIOUS TYPES OF DATA TYPES WHICH ARE USING IN C LANGUAGE .





IN THIS POST WE SHALL DISCUSS ABOUT ONLY PRIMARY DATA TYPES .


1.) PRIMARY or PRIMITIVE DATA TYPES:-

                                                                            THESE ARE FUNDAMENTAL DATA TYPE IN C INTEGER(int) , FLOAT(float) ,CHARACTER(ch) , DOUBLE(double) AND VOID(void). .

i.) INTEGER TYPE:-

                                  INTEGER DATA TYPE ARE USED TO STORE WHOLE NUMBERS . INTEGER STORES 2 BYTE  AND ITS RANGE IS FROM -32.768 TO 32.767 . INTEGER MEMORY STORY DEPENDS ON BIT OF THE COMPUTER , IT IS 16 BIT ,32 BIT OR 64 BIT .


*The following table provides the details of standard integer types with their storage sizes and value ranges −




ii.) CHARACTER TYPE:-

                                         CHARACTER TYPE ARE USED TO STORE ALPHABETIC DATA .
CHARACTER STORES 1 BYTE IN COMPUTER MEMORY LOCATION AND ITS RANGE IS FROM -128 TO 127 .

*The Following table provides the detail of standard character types with their storage , sizes and value ranges .





iii.) FLOAT DATA TYPE:-

                                           FLOAT DATA TYPE ARE USED TO STORE THE DECIMAL VALUES LIKE 3.8 ,0.05 ETC . FLOAT STORES 4 BYTE AND ITS RANGE IS FROM -3.4e382 TO 3.4e382 .


iv.) DOUBLE DATA TYPE:-

                                              THE DOUBLE TYPE IS SAME AS FLOAT TYPE ONLY , WITH ROUGHLY TWICE THE PRECISION . DOUBLE DATA TYPE STORES 8 BYTE IN MEMORY LOCATION AND ITS RANGE IS FROM -1.7e308 TO 1.7e308 .




-----------------------------------------------------------------------------------------------------------------------------------------------
NOTE:-WE SHALL DISCUSS ABOUT SECONDARY DATA TYPES IN OUR NEXT POST.

FOR MORE KNOWLEDGE CLICK BELOW:-



2.basics-of-c-programming-2.(OPERATORS)

3.basics-of-programming-3(functions)

4.basics-of-programming-4(calling FUNCTIONS)




Comments

Post a Comment

Popular posts from this blog

BEST GAMING LAPTOPS FOR HIGH QUALITY/GRAPHICS GAMES

THE BEST GAMING LAPTOPS  NOW-A-DAYS THE TREND OF VIDEO GAMES HAS INCREASED. NEW GENERATION IS ENJOYING VIDEO GAMES VERY MUCH NOW-A-DAYS . MOST OF THE LATEST GAMES ARE COMING UP NOWDAYS WHICH ARE NOT ONLY APPEALING TO CHILDREN BUT  ALSO THE BIG ONES . AND NOWDAYS, GAMES THAT ARE BEING MADE A VERY HIGH QUALITY AND HIGH GRAPHICS IF YOU PLAY SUCH HIGH GRAPHICS GAMES IN A NORMAL LAPTOP THEN THE LAPTOP WILL TURN SLOWER AND HANG IT . THAT'S WHY THERE ARE DIFFERENT GAMING LAPTOPS   COMING FROM SUCH HIGH QUALITY GAMES THAT MUST BE READ BELOW . THE BEST GAMING LA PTO PS ARE FAST CHANGING IN 2019. NOW THAT THE  NEW 20-SERIES GPUs HAVE ST ARTED TO  FILTER INTO OUR FAVOURITE GAMING LAPTOPS MODEL , THE BALANCE OF WHICH ONE IS TRULY   'BEST' IS SHIFTING. WHILE, DOUBT THE BEST GAMING LAPTOP OF LAST YEAR WAS THE MSI GS65 STEALTH THIN , THAT SIMPLY ISN'T IN THE CASE AS WE GET MID-WAY THROUGH 2019. NOW, OUR BEST GAMING LAPTOP IS THE  RAZER BLADE...

How to Make a Bootable Pen drive: A Step-by-Step Guide

  How to Make a Bootable Pen drive: A Step-by-Step Guide   Introduction: In today's digital world, bootable pen drives have become indispensable tools for installing operating systems, running diagnostics, and recovering data. Creating a bootable pen drive is easier than you might think, and this guide will walk you through the process in a simple and straightforward manner. Whether you're a beginner or an experienced computer user, this step-by-step tutorial will help you create your own bootable pen drive effortlessly. Step 1 : Gather the Required Materials To make a bootable pen drive, you'll need the following items: 1. A USB pen drive with sufficient storage capacity (at least 8GB is recommended). 2. The ISO file or installation media of the operating system or tool you want to make bootable (e.g., Windows, Linux, etc.). 3. A computer with an available USB port. Step 2: Download the Required Software To create a bootable pen drive, you'll need specialized software...

Top 6 Best Video Games for 2GB RAM Laptops

Top 6 Best Video Games for 2GB RAM: Game Configurations and Recommended Laptops Introduction: When it comes to gaming, having a high-end gaming rig is often considered essential. However, not everyone has access to a powerful computer with loads of RAM and a dedicated graphics card. But fear not, as there are still plenty of enjoyable gaming experiences available for those with more modest hardware configurations. In this blog post, we will explore the top six best video games that can run smoothly on a system with 2GB RAM. Additionally, we will suggest some good laptops that are suitable for gaming on such specifications. 1. Star dew Valley: - RAM Requirement: 2GB - CPU: 2.00 GHz processor - GPU: Integrated graphics with 256MB video memory Star dew Valley is a relaxing farming simulation game that has captivated players with its charming visuals and engaging gameplay. With its low system requirements, it can run smoothly on systems with 2GB RAM. Download Here:  Star dew valley 2....