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

What does dm mean sexually?

0 Answers  


Why does notstrcat(string, "!");Work?

0 Answers  


What are data types in c language?

0 Answers  


How can you avoid including a header more than once?

0 Answers  


Explain what is the heap?

0 Answers  






What are the types of bitwise operator?

0 Answers  


dennis ritchie invented C language in AT&T bell laboratory what is the extension of AT&T?

4 Answers  


can anyone please tell about the nested interrupts?

0 Answers  


What is a char in c?

0 Answers  


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

0 Answers  


What is c language used for?

0 Answers  


Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)

6 Answers   Subex,


Categories