C Aptitude Questions and answers with explanation

C Aptitude 28C program is one of most popular programming language which is used for core level of coding across the board. C program is used for operating systems, embedded systems, system engineering, word processors,hard ware drivers, etc. The C aptitude questions and answers for those questions along with explanation for the interview related queries. …

C Program to Delete a File Using remove() — Safe Code with Error Handling

The remove() function in C deletes a file from the filesystem. Defined in <stdio.h>, it works on both Windows and Linux — making it the standard, portable way to delete files from a C program. Syntax int remove(const char *filename); filename is the path to the file — relative to the working directory (e.g. data.txt) …

C program without using main function

Write a C program without using main function.In this program, we didn’t use the main function, but we are using the preprocessor directive #define with arguments to define the Main function.A Preprocessor is program which processes the source code before compilation.The ‘##‘ operator is called the token pasting or token merging operator. In the second …

C program to print given numbers as a pyramid

Write a C program to print given numbers as a pyramid.In this program we use the simple for statements to produce the patterns.This program prints the following output,        1      232    34543  4567654567898765 Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and …

C Aptitude Questions and answers with explanation

C Aptitude 24C program is one of most popular programming language which is used for core level of coding across the board. C program is used for operating systems, embedded systems, system engineering, word processors,hard ware drivers, etc. In this site, we have discussed various type of C programs till date and from now on, …

C Program to change the text colors.

Write a C Program to change the text colors.In this program, we give the example of changing the text colors, background colors using conio.h library.Syntax: void textcolor(int_color);Here color is the integer variable, you can specify a color name also, but it should be a proper color name in capital letters.Read more about C Programming Language …