
- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion
Write a C program to print âABCDâ repeatedly without using loop, recursion and any control structure
In this problem, we have to write a program in c that will print a string ‘ABCD’ repeatedly without using loop, recursion and any control structure.
So, we will have to call or run the same block of code infinite time but without using loop, recursion or control structure which are the most common methods to perform the task. For this, we will run the same program multiple times instead of looping. This will perform our task within the given constraints. The system() method can be employed inside the code that will call the program infinite times.
We will pass the file name to the system() method to run the program repeatedly.
Program to illustrate our solution
Example
//naming the program file main #include<stdio.h> #include<stdlib.h> int main(){ printf("ABCD\t"); system("main"); return 0; }
Output
The program will print ABCD infinate times untill you stop the program execution.
- Related Articles
- C program to print number series without using any loop
- Print a pattern without using any loop in C++
- Java Program to print Number series without using any loop
- Print 1 to 100 in C++, without loop and recursion
- Print a number 100 times without using loop, recursion and macro expansion in C
- Print Number series without using any loop in Python Program
- Python Program for Print Number series without using any loop
- Print a character n times without using loop, recursion or goto in C++
- Program to print root to leaf paths without using recursion using C++
- Write a C program to print â Tutorials Point â without using a semicolon
- Print m multiplies of n without using any loop in Python.
- Program to print numbers from 1 to 100 without using loop
- Write a C program to reduce any fraction to least terms using while loop
- Write a program to print âTutorials Pointâ without using a semicolon in C
- Print first m multiples of n without using any loop in Python

Advertisements