C program to find the character type.

The ctype.h header provides a set of functions for testing and converting individual characters. Each function takes an int (the ASCII value of a character) and returns a non-zero value (true) if the character belongs to a certain class. They are used in parsers, tokenizers, input validation, and any code that processes text character by …

extern Keyword in C – Declaration, Definition, and Multi-File Programs

The extern keyword in C declares that a variable or function exists — but is defined somewhere else. It tells the compiler “trust me, this symbol is defined in another translation unit; the linker will resolve it.” Understanding extern is essential for any multi-file C program, and confusing declaration with definition is one of the …

sizeof Data Types in C – Size of All Types on 32-bit and 64-bit

The sizeof operator in C returns the size in bytes of a type or expression. It is evaluated at compile time and is the standard, portable way to determine how much memory any type occupies on the current platform. Because type sizes vary between 32-bit and 64-bit systems and between compilers, you should always use …

C Program to demonstrate the ‘atof’ and ‘gets’ functions.

Converting strings to numbers is a fundamental task in C — every value read from scanf, fgets, or command-line arguments arrives as a string and must be explicitly converted. The standard library in <stdlib.h> provides three simple conversion functions: atoi() (string to int), atol() (string to long), and atof() (string to double/float). For robust error …

C Program to implement the Newton- Gregory forward interpolation

C Program to implement the Newton- Gregory forward interpolation. Newtons – Gregory forward difference formula is a finite difference identity capable of giving an interpolated value between the tabulated points {fk} in terms of the first value f0 and powers of the forward difference Δ. In this program we used the multidimensional arrays and arrays …

C Program to check the given number is perfect or not.

C Program to check the given number is perfect or not?.  Perfect number is a positive integer that is equal to the sum of its proper positive divisors. example 6, divisor of 6 are 1, 2,3. Sum of divisors is 1+2+3=6. Read more about C Programming Language . /************************************************************ You can use all the programs …