Skip to content

Category Archives: Programming Language

This is an important question concerning the interview point of view. final keyword final(lowercase) is a reserved keyword in java. We can’t use it as… Read More
Project idea:The aim of this project is to create a game in python in which the user is presented with an anagram of a word… Read More
Try to predict the output of following code: public class Geeksforgeeks {     public static void main(String[] args)     {         System.out.println(2+0+1+6+"GeeksforGeeks");         System.out.println("GeeksforGeeks"+2+0+1+6);         System.out.println(2+0+1+5+"GeeksforGeeks"+2+0+1+6);         System.out.println(2+0+1+5+"GeeksforGeeks"+(2+0+1+6));     } }  … Read More
“Setjump” and “Longjump” are defined in setjmp.h, a header file in C standard library. setjump(jmp_buf buf) : uses buf to remember current position and returns… Read More
In the previous article, we read about the basics of Python. Now, we continue with some more python concepts. Strings in Python A string is a… Read More
Introduction to Python has been dealt with in this article. Now, let us begin with learning python. Running your First Code in Python Python programs… Read More
If you’re familiar with Python, you would have known Increment and Decrement operators ( both pre and post) are not allowed in it. Python is… Read More
What code to write in place of “// your code” so that the below code prints 20. #include <stdio.h> int f();    int main() {… Read More
Write a function that takes a file name as argument and prints all unique words in it. We strongly recommend you to minimize your browser… Read More
  Q. Major Differences between Java and C++  There are lot of differences, some of the major differences are: Java has automatic garbage collection whereas C++… Read More
Inversion Count for an array indicates – how far (or close) the array is from being sorted. If array is already sorted then inversion count… Read More
The pair container is a simple container defined in <utility> header consisting of two data elements or objects.  The first element is referenced as ‘first’… Read More
Click here for Set 1 of Vectors.   Modifiers 1.1 assign(input_iterator first, input_iterator last) – Assigns new content to vector and resize 1.2 assign(size_type n,… Read More
Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are more… Read More
Queues are a type of container adaptors which operate in a first in first out (FIFO) type of arrangement. Elements are inserted at the back… Read More