{"id":4966,"date":"2022-10-07T07:28:02","date_gmt":"2022-10-07T07:28:02","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4966"},"modified":"2022-10-07T07:33:30","modified_gmt":"2022-10-07T07:33:30","slug":"what-do-you-mean-by-data-type-in-c","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/","title":{"rendered":"What do you mean by Data Type in C ?"},"content":{"rendered":"<ul>\n<li style=\"text-align: justify;\">Data type is type of the value that a variable can store.<\/li>\n<li style=\"text-align: justify;\">Each variable has its own data type and each data type occcupies different size of memory storage.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Some commonly used data types are:<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li><strong>char :<\/strong> char is a data type which stores single character. It needs one byte memory.<\/li>\n<li><strong>Ex: <\/strong><strong>char ch;<\/strong>\n<ul>\n<li>Here char is a data type that stores single character as its value.<\/li>\n<li>Ch is variable name which stores the value of single character<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li><strong>Int :<\/strong> integer is a data type that is used to store numerical numbers. It requires four-byte memory.<\/li>\n<li><strong>Ex:<\/strong><strong>int i;<\/strong>\n<ul>\n<li>Here int is a data type that stores numbers.<\/li>\n<li>i is variable of type integers.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li><strong>Float:<\/strong> is a data type that is used to store decimal numbers with one decimal point. It also requires 4 byte of memory.<\/li>\n<li><strong>Ex:<\/strong><strong>float f;<\/strong>\n<ul>\n<li>Here float is a data type that stores decimal numbers with one decimal point. F is variable name.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul style=\"text-align: justify;\">\n<li><strong>double:<\/strong> is a data type that is used to store decimal numbers with two decimal point.<\/li>\n<li><strong>Ex:<\/strong><strong>double d;<\/strong>\n<ul>\n<li>Here\u00a0 double is a data type to store decimal value with two points.<\/li>\n<li>d is a variable name.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4968 aligncenter\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg\" alt=\"\" width=\"656\" height=\"229\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg 656w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types-300x105.jpg 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types-390x136.jpg 390w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>\u00a0<\/strong><\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>Data type is type of the value that a variable can store. Each variable has its own data type and each data type occcupies different size of memory storage. Some commonly used data types are: char : char is a data type which stores single character. It needs one byte memory. Ex: char ch; Here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1716],"tags":[18800,18799,18887,18803,18892,18890,18891,18888,18804,18889],"class_list":["post-4966","post","type-post","status-publish","format-standard","hentry","category-c","tag-c-data-types","tag-data-types-in-c","tag-data-types-in-c-programming-language","tag-data-types-in-c-with-examples","tag-float-data-type-in-c","tag-how-many-data-types-in-c","tag-integer-data-types-in-c","tag-learn-data-types-in-c","tag-size-of-data-types-in-c","tag-what-is-data-type"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What do you mean by Data Type in C ? - C Data Types<\/title>\n<meta name=\"description\" content=\"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What do you mean by Data Type in C ? - C Data Types\" \/>\n<meta property=\"og:description\" content=\"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-07T07:28:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-07T07:33:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/\"},\"author\":{\"name\":\"webmaster\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"headline\":\"What do you mean by Data Type in C ?\",\"datePublished\":\"2022-10-07T07:28:02+00:00\",\"dateModified\":\"2022-10-07T07:33:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/\"},\"wordCount\":201,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/definition-of-data-types.jpg\",\"keywords\":[\"c data types\",\"data types in c\",\"data types in c programming language\",\"data types in c with examples\",\"float data type in c\",\"how many data types in c\",\"integer data types in c\",\"learn data types in c\",\"size of data types in c\",\"what is data type\"],\"articleSection\":[\"C\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/\",\"name\":\"What do you mean by Data Type in C ? - C Data Types\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/definition-of-data-types.jpg\",\"datePublished\":\"2022-10-07T07:28:02+00:00\",\"dateModified\":\"2022-10-07T07:33:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/c\\\/what-do-you-mean-by-data-type-in-c\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/definition-of-data-types.jpg\",\"contentUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/definition-of-data-types.jpg\",\"width\":656,\"height\":229},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\"],\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/webmaster\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What do you mean by Data Type in C ? - C Data Types","description":"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/","og_locale":"en_US","og_type":"article","og_title":"What do you mean by Data Type in C ? - C Data Types","og_description":"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/","og_site_name":"Wikitechy","article_published_time":"2022-10-07T07:28:02+00:00","article_modified_time":"2022-10-07T07:33:30+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg","type":"","width":"","height":""}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/"},"author":{"name":"webmaster","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"headline":"What do you mean by Data Type in C ?","datePublished":"2022-10-07T07:28:02+00:00","dateModified":"2022-10-07T07:33:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/"},"wordCount":201,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg","keywords":["c data types","data types in c","data types in c programming language","data types in c with examples","float data type in c","how many data types in c","integer data types in c","learn data types in c","size of data types in c","what is data type"],"articleSection":["C"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/","name":"What do you mean by Data Type in C ? - C Data Types","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg","datePublished":"2022-10-07T07:28:02+00:00","dateModified":"2022-10-07T07:33:30+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What do you mean by Data Type in C ? - Data type is type of the value that a variable can store.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/c\/what-do-you-mean-by-data-type-in-c\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/10\/definition-of-data-types.jpg","width":656,"height":229},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4966"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4966\/revisions"}],"predecessor-version":[{"id":4970,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4966\/revisions\/4970"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}