What are primary data types in C language in Hindi? 2022

इस आर्टिकल में हम What are primary data types in C language in Hindi? और types of primary data type in Hindi के बारे में जानेंगे.  दोस्तों hindi me IT me आपका बहुत बहुत अभिनान्दन हैं.

What are primary data types in C language in Hindi?

primary data types C language का मूल data types भी कह सकते हैं.क्योकिं ये C में pre-defined होते हैं. primary data types ही memory में actual data को represent करते हैं. variable में store किया गया data किस प्रकार का हैं कितनी memory लेगा ये सब बताने में help करता हैं एक developer को.

What are primary data types in C language in Hindi

types of primary data type in Hindi | प्रिमारी data types के प्रकार

primary data type C programming language में निम्नलिखित होते हैं.

  1. Integer
  2. Character
  3. Floating
  4. Double Floating point

Why do use primary/Basic Data Types in C in Hindi? | सी में बेसिक डेटा टाइप का उपयोग क्यों करते हैं?

इसे समझने के लिए एक example की help लेते हैं.

मान लो एक student की details को store करना हैं. जैसे नाम, IDs, blood groups, age, fees आदि. इस इनफार्मेशन को store करने के लिये primary data types का use करेंगे.

char candidate_name[20];
int age;
int IDs;
char blood;
double fees;

नीचे दी गयी table में primary data type memory size को बताया हैं.

DATA TYPE

MEMORY (bytes)

RANGE

FORMAT SPECIFIER

int 4 -231 to 231 – 1 %d 
char 1 -128 to 127 %c
float 4 1.2E-38 to 3.4E+38 %f
double 8 2.3E-308 to 1.7E+308 %lf

what is int Data Type in C in Hindi? | int Data type क्या हैं?

int variable पूर्ण value को store करता हैं. वह value ऋणात्मक या धनात्मक कोई भी हो सकती हैं. C programming language में पूर्ण value को store करने के लिए पहले से ही एक keyword int define हैं.

  • int data type में decimal values को store नहीं करते हैं.
  • int data type में decimal values value को store करने की कोशिश करते हैं. decimal point के बाद की value को छोड़ देता हैं जैसे 10.10 को store करना हैं int में तो int में केवल 10 value ही store होगी. अगर हम ऐसा नहीं चाहते हैं तो float variable लेना होगा.
  • int data types में various numeric values store कर सकते हैं.

Syntax:-

int variable_name;

Example:-

#include <stdio.h>

int main()

{

    int num = 10, ans = 1;

    int i;

    printf("The multiples of num are: \n");

    for (i = 1; i <= num; i++) {
        ans = i * num; 

        printf("5 * %d", i);

        printf(" is %d", ans);

        printf("\n");
    }
}

output:-

5 * 1 is 5
5 * 2 is 10
5 * 3 is 15
5 * 4 is 20
5 * 5 is 25
5 * 6 is 30
5 * 7 is 35
5 * 8 is 40
5 * 9 is 45
5 * 10 is 50

what is Char Data Type in Hindi? |char data type क्या हैं?

char data type में single character value को store कर सकते हैं.

  • char data type variable में एक character ही store कर सकते हैं.
  • char data type का storage size 1 byte.

Syntax:-

char variable_name;

what is float data type in Hindi? | float data type क्या हैं?

float data type में decimal values को store करने के लिये use किया जाता हैं.  जो वैल्यूज पूर्ण नहीं होती हैं. जैसे:- 10.10, 99.99, 8.0 आदि.

  • float data type का use मूल रूप से decimal value को store करने के लिये किया जाता हैं.
  • इस का storage size 4 bytes हैं.
  • float data type का use करके, program में decimal point के 6 स्थान तक value को store किया जा सकता हैं. जैसे:- 11.123456

Syntax:-

float varaible_name;

Example :-

#include <stdio.h>
int main()
{
    float radius = 20.0; 
    printf("Radius of the circle is: %f", radius);
    printf("\n");
    float area;
    area = 3.14 * radius * radius; 
    printf("Area of the circle is :%f", area);
}

Output:-

Radius of the circle is : 20.000000
Area of the circle is : 628.000000

what is Double data type in Hindi? | Double data type क्या हैं?

Double data type का use float data type की तरह ही decimal value को store करने के लिए किया जाता हैं. लेकिन ये float data type से अलग हैं. क्योकिं ये float की तुलना में दोगुनी मेमोरी लेता हैं.  और इसकी floating-point रेंज float से अधिक हैं. double data type decimal point के बाद 10 स्थान तक store कर सकता हैं.

  • double data type भी float के समान ही हैं. लेकिन float decimal point के बाद 6 स्थान तक value को store कर सकता हैं. जबकि double 10 साथं तक store कर सकता हैं.

Syntax:-

double variable_name;

By reference by :- https://www.geeksforgeeks.org/data-types-in-c/

आशा  करता हूँ What are primary data types in C language in Hindi? और types of primary data type in Hindi आपको पसंद आई होगी. अगर आपको इससे related कोई question पूछना हैं तो आप comment करके पूछ सकते है. अगर हमारे व्दारा की जानकर अच्छी लगी हो तो आपने दोस्तों के साथ जरुर शेयर करें. धन्यबाद

FAQ प्रश्न :-

प्रश्न – What are primary data types in C language in Hindi?

What are primary data types in C language in Hindi

उत्तर – primary data types C language का मूल data types भी कह सकते हैं.क्योकिं pre-defined होते हैं. primary data types ही memory में actual data को represent करत हैं. variable में store किया गया data किस प्रकार का हैं कितनी memory लेगा ये सब बताने में help करता हैं एक developer को.

Related Posts

Leave a Comment