Misc C Programs Last Updated : 22 May, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report C Program to print environment variablesC Program to Swap two NumbersC program swap two numbers without using a temporary variableC Program to check if a given year is leap yearC Program to sum the digits of a given number in single statement?C program to print numbers from 1 to 100 without using loop?C Program to list all files and sub-directories in a directoryC Program to count number of lines in a fileC/C++ Program for Check if a number is PalindromeC/C++ Program for Print all possible combinations of r elements in a given array of size nC/C++ Program for Print all possible strings of length k that can be formed from a set of n charactersC Program for Tower of Hanoi Comment More infoAdvertise with us Next Article LMNs-C Programming R rahulsharmagfg1 Follow Improve Article Tags : C++ Practice Tags : CPP Similar Reads LMNs-C Programming C programming is a powerful and widely-used programming language that forms the backbone of many modern technologies. Known for its simplicity and efficiency, it is the foundation for learning advanced programming concepts. C programming is a powerful and widely-used programming language that forms 6 min read C/C++ Tricky Programs We may come across various tricky programs in our day-to-day life. Maybe in technical interviews, coding tests, or C/C++ classrooms. Here is a list of such programs:- Print text within double quotes (" "). This may seem easy, but beginners may get puzzled while printing text within double quotes. C 6 min read C++ Programming Examples Writing C++ programs yourself is the best way to learn the C++ language. C++ programs are also asked in the interviews. This article covers the top practice problems for basic C++ programs on topics like control flow, patterns, and functions to complex ones like pointers, arrays, and strings.Basic C 7 min read Output of C programs | Set 51 1. What will be the output of the below program? CPP #include <stdio.h> int main() { printf("%d", printf("%d", printf("%d", printf("%s", "Welcome to geeksforgeeks")))); return (0); } Options: 1. Welcome to geeksforgeeks2531 2. Welcome to geeksf 2 min read Output of C++ programs | Set 42 Prerequisite : Pointers and References Q.1 What Is The Output Of this program? CPP #include <iostream> using namespace std; void fun(int& a, int b) { a += 2; b += 1; } int main() { int x = 10, y = 2; fun(x, y); cout << x << " " << y << " "; fun(x 4 min read C++ Tutorial | Learn C++ Programming C++ is a popular programming language that was developed as an extension of the C programming language to include OOPs programming paradigm. Since then, it has become foundation of many modern technologies like game engines, web browsers, operating systems, financial systems, etc.Features of C++Why 5 min read Like