Q1.What is output of following program? Source Code-> #include <stdio.h> #include<conio.h> void main() { clrscr...
Read More
Home
c aptitude questions
Showing posts with label c aptitude questions. Show all posts
Showing posts with label c aptitude questions. Show all posts
How to perform addition of two numbers without using addition(plus) operator in C language?
Q. How to perform addition of two numbers without using addition(plus) operator in C language? Answer: Let us write C program,...
Read More
What will happen if we call main within main in C language?
Answer: Let us write C program for it, #include<stdio.h> #include<conio.h> int x=0; void main() { printf(...
Read More
C program for finding factorial of number
This program is about finding factorial of number. Given the number, this program will use logic of multiplying number with previou...
Read More
How to print 1 to 100 without using (for/while/do-while) loop in C language ?
Answer: Let us write C program with recursive function as we can’t use FOR/WHILE/DO-WHILE loops, #include<stdio.h> #inclu...
Read More
Subscribe to:
Posts
(
Atom
)