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 / santhosh r
#include<stdio.h>
main()
{int a;
printf("%d",scanf("%d",&a));
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
How can I change the size of the dynamically allocated array?
What is volatile variable in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Ow can I insert or delete a line (or record) in the middle of a file?
Describe wild pointers in c?
What is difference between structure and union with example?
Which is better oop or procedural?
What is the significance of scope resolution operator?
Why pointers are used in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Explain how can I right-justify a string?
What is the difference between text and binary i/o?
What is preprocessor with example?