Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?

2 Answers   Excel,


can we access one file to one directory?

1 Answers  


How does sizeof know array size?

0 Answers  


any string of bits of length 'n' represents a unique non- negative integer between.............?

2 Answers  


What are c preprocessors?

0 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


What is static function in c?

0 Answers  


how we can say java is platform independent, while we require JVM for that particular Operating System?

3 Answers   Honeywell, TCS,


Write a program to reverse a linked list in c.

0 Answers   DELL, HAL,


write a program to generate 1st n fibonacci prime number

2 Answers  


how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.

2 Answers  


what is the similarities between. system call and library function?

1 Answers   Wipro,


Categories