{"id":695,"date":"2024-02-14T11:26:10","date_gmt":"2024-02-14T11:26:10","guid":{"rendered":"https:\/\/odeacademy.in\/?p=695"},"modified":"2024-02-14T11:26:10","modified_gmt":"2024-02-14T11:26:10","slug":"c-variable-data-types-and-format-specifiers","status":"publish","type":"post","link":"https:\/\/thequickknowledge.com\/exam\/c-variable-data-types-and-format-specifiers\/","title":{"rendered":"C variable, Data Types and Format Specifiers"},"content":{"rendered":"<p><strong>What is C variable ?<\/strong><\/p>\n<p>A variable is the name of a reserved area allocated in memory. It is a container which holds the value while the Java program is executed. A variable is assigned with a\u00a0data type.<\/p>\n<p><strong><b>Data Types in C can be classified as &#8211; <\/b>(1) <\/strong>Primitive Data Types, <strong>(2)<\/strong> User Defined Data Types And <strong>(3)<\/strong> Derived Types<\/p>\n<p><strong>1) Primitive Data Types<\/strong> &#8211; int, float, char, double, void<\/p>\n<p><strong>2)<\/strong> <strong>User Defined Data Types<\/strong> &#8211; function, array, pointer, reference<\/p>\n<p><strong>3)<\/strong> <strong>Derived Types<\/strong> &#8211; class, structure, union, enum, typedef<\/p>\n<p><strong>Format Specifiers<\/strong><\/p>\n<p>There are different format specifiers for each data type. Here are some of them &#8211; int (%d, %i), float (%f, %F), double (%lf), long double (%Lf), char (%c), string (%s)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is C variable ? A variable is the name of a reserved area allocated in memory. It is a container which holds the value while the Java program is executed. A variable is assigned with a\u00a0data type. Data Types in C can be classified as &#8211; (1) Primitive Data Types, (2) User Defined Data [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[20,14],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-new-post","tag-c-language","tag-computer-science"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/comments?post=695"}],"version-history":[{"count":1,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/posts\/695\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/media?parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/categories?post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thequickknowledge.com\/exam\/wp-json\/wp\/v2\/tags?post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}