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
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 |
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 |
#include<stdio.h>
main()
{int a;
printf("%d",scanf("%d",&a));
}
| Is This Answer Correct ? | 9 Yes | 8 No |
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 |
How can you dynamically allocate memory in C?
Can you write the function prototype, definition and mention the other requirements.
program in c to print 1 to 100 without using loop
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }
What is the difference between CV and Resume ?
What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?
what is an inline fuction??
what is data structure.in linear and non linear data structures which one is better?Explain
Why is c platform dependent?
what is the difference between char * const and const char *?
wtite a program that will multiply two integers in recursion function
How is a null pointer different from a dangling pointer?