Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Sunday 24 March 2019

The Interview Question Today#22(17-3-19)


Question:
C Program to print numbers from 1 to N without using the semicolon?

Solution:


#include<stdio.h>
#define N 10

int main(int num)
{
    if (num <= N && printf("%d ", num) && main(num + 1))
    {
    }
}

0 comments:

Post a Comment