GeeksforGeeks

Add Interview/written questions to Interview Corner!!
Register  |  Login

Browsing the topic Articles

exit()

void exit ( int status );

exit() terminates the process normally.

Read More »

A quine is a program which prints a copy of its own as the only output. A quine takes no input. Quines are named after the American mathematician and logician Willard Van Orman Quine (1908–2000). The interesting thing is you are not allowed to use open and then print file of the program.

Read More »

Consider the below program.

Read More »

Asked by geek4u
Consider the below program.

Read More »

Let us consider the below program.

Read More »

In C, a string can be referred either using a character pointer or as a character array.

Read More »

Registers are faster than memory to access, so the variables which are most frequently used in a C program can be put in registers using register keyword.

Read More »

Uninitialized pointers are known as wild pointers because they point to some arbitrary memory location and may cause a program to crash or behave badly.

Read More »

Memory leak occurs when programmers create a memory in heap and forget to delete it.
Memory leaks are particularly serious issues for programs like daemons and servers which by definition never terminate.

Read More »

Most of us have studied Computer Networks in a very abstract manner. In other words, not many of us know how the abstract concepts of layers and packets translate in real life networks such as the Internet. Therefore let us do an experiment and see whether these layers, packets etc. exist in any real network [...]

Read More »

I’m sure that this post will be as interesting and informative to C virgins (i.e. beginners) as it will be to those who are well versed in C. So let me start with saying that extern keyword applies to C variables (data objects) and C functions.

Read More »

What are these?
Little and big endian are two ways of storing multibyte data-types ( int, float, etc). In little endian machines, last byte of binary representation of the multibyte data-type is stored first. On the other hand, in big endian machines, first byte of binary representation of the multibyte data-type is stored last.

Read More »