input may any number except 1,output will always 1..
conditions only one variable should be declare,don't use
operators,expressions,array,structure
Answer Posted / 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 View All Answers
Are the expressions * ptr ++ and ++ * ptr same?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Where is c used?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is the function of volatile in c language?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
What is the modulus operator?
Ow can I insert or delete a line (or record) in the middle of a file?
How does selection sort work in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What are extern variables in c?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What does emoji p mean?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?