input may any number except 1,output will always 1..
conditions only one variable should be declare,don't use
operators,expressions,array,structure

Answers were Sorted based on User's Feedback



input may any number except 1,output will always 1.. conditions only one variable should be declare..

Answer / kesavalu

#include<stdio.h>
#include<conio.h>
main()
{
int d;
printf("enter any no except 1");
scanf("%d",&d);
clrscr();
printf("1");
getch();
}

Is This Answer Correct ?    9 Yes 2 No

input may any number except 1,output will always 1.. conditions only one variable should be declare..

Answer / nila

#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Enter the number:");
scanf("%d",&a);
printf("1");
getch();
}

Is This Answer Correct ?    3 Yes 1 No

input may any number except 1,output will always 1.. conditions only one variable should be declare..

Answer / santhosh r

#include<stdio.h>
main()

{int a;
printf("%d",scanf("%d",&a));
}

Is This Answer Correct ?    9 Yes 8 No

input may any number except 1,output will always 1.. conditions only one variable should be declare..

Answer / dana

#include<stdio.h>
#include<conio.h>
main()
{
int x;
printf{"enter the num ",x);
scanf("%d",&x);
if(x!=1)
printf("1");
else
printf(" ");
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

0 Answers  


Explain how do you list a file’s date and time?

0 Answers  


what is diognisis?

1 Answers  


What does %p mean?

0 Answers  


What is the difference between call by value and call by reference in c?

0 Answers  






Total of how many functions are available in c?

3 Answers  


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


What are keywords in c with examples?

0 Answers  


How would you obtain the current time and difference between two times?

0 Answers   TISL,


Give differences between - new and malloc() , delete and free() ?

0 Answers   Genpact,


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

0 Answers   Subex,


what is the difference between unix os and linux os

4 Answers  


Categories