Skip to content

Tag Archives: C Basics

  Each variable in C has an associated data type. Each data type requires different amounts of memory and has some specific operations which can… Read More
A variable in simple terms is a storage place that has some memory allocated to it. Basically, a variable is used to store some form… Read More
  Sizeof is a much used operator in the C or C++. It is a compile time unary operator which can be used to compute… Read More
We have introduced arrays in set 1 (Introduction to arrays in C). In this post array properties in C are discussed. 1) In C, it… Read More
Array It is a group of variables of similar data types referred to by a single element. Its elements are stored in a contiguous memory… Read More
What happens if there is a comment in header file name? Parsing of `#include’ is slightly special because comments are not recognized within the ”.… Read More
Enumeration (or enum) is a user defined data type in C. It is mainly used to assign names to integral constants, the names make a… Read More
Like Structures, union is a user defined data type. In union, all members share the same memory location. For example in the following C program,… Read More
  What is a structure? A structure is a key word that create user defined data type in C/C++. A structure creates a data type that… Read More
Predict the output of following C programs. // PROGRAM 1 #include <stdio.h> #include <stdlib.h>    int main(void) {    static int *p = (int*)malloc(sizeof(p));    *p =… Read More
A void pointer is a pointer that has no associated data type with it. A void pointer can hold address of any type and can… Read More
In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. by this… Read More
C is a procedural programming language. It was initially developed by Dennis Ritchie in the year 1972. It was mainly developed as a system programming… Read More
The C standard says following about main function in C. The function called at program startup is named main. The implementation declares no prototype for… Read More
  The idea of this article is to introduce C standard.  What to do when a C program produces different results in two different compilers? For… Read More

Start Your Coding Journey Now!