Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
A permutation, also called an “arrangement number” or “order,” is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with… 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… Read More
A simple solution is to traverse the linked list until you find the node you want to delete. But this solution requires a pointer to… Read More
Predict the output of below programs Question 1 int main() {     unsigned int i=65000;     while ( i++ != 0 );     printf("%d",i);     return 0; } Output:… Read More
Predict the output of below programs  Question 1   c int main() {     while(1){         if(printf("%d",printf("%d")))             break;         else             continue;     }     return 0; } Output: Can’t be predictedExplanation: The condition… Read More
I’m sure 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… Read More
Given a singly linked list and a key, count number of occurrences of given key in linked list. For example, if given linked list is… Read More
Algorithm For C/C++: Iterate through the linked list and delete all the nodes one by one. The main point here is not to access the… Read More
Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked… Read More
Given a singly linked list, find the middle of the linked list. For example, if the given linked list is 1->2->3->4->5 then the output should… 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… Read More
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12,… Read More
Predict the output of below programs Question 1 #include‹stdio.h› int main() {     struct site     {         char name[] = "GeeksforGeeks";         int no_of_pages = 200;     };     struct… Read More
Write a C program to show memory representation of C variables like int, float, pointer, etc. Algorithm: Get the address and size of the variable.… Read More
Solution: Use sprintf() function. #include<stdio.h> int main() {     char result[50];     float num = 23.34;     sprintf(result, "%f", num);     printf("\n The string for the num is %s",… Read More