A typical memory representation of C program consists of following sections.
1. Text segment
2. Initialized data segment
3. Uninitialized data segment
4. Stack
5. He...
Share
Although C does not provide direct support to error handling (or exception handling), there are ways through which error handling can be done in C. A programmer has t...
Share
We may come across various tricky programs in our day to day life. May be in technical interviews, coding tests, or in C/C++ classrooms.
Here is a list of such progra...
Share
This article is aimed at giving a C++ implementation for pattern printing.
Simple pyramid pattern
// C++ code to demonstrate star pattern
#include <iostr...
Share
Prerequisite – Java Constructors
1) What is the output of the following program?
class Helper
{
    private int data;
 &#...
Share
Prerequisite – Collections in Java
1) What is the output of the following program?
import java.util.*;
  
public class priorityQueue
{
&#...
Share
Prerequisite – Garbage Collection in Java
Difficulty level : Intermediate
In Java, object destruction is taken care by the Garbage Collector module and the obj...
Share
Predict the output of following PHP programs:
Question 1
<?php
    echo str_pad("Welcome", 5)." to GeeksforGeeks."...
Share
Predict the output of the following PHP programs:
Question 1
<?php
    $num = "123";
    if (!filter_v...
Share
Predict the output of below PHP programs:
Question 1
<?php
  
"Welcome to GeeksforGeeks!"
  
?>
Options:
Erro...
Share