n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Answers were Sorted based on User's Feedback
Answer / vikesh
n=temp=762
the value of result depends on initial value of result
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / naresh lingampally
cool!!! ignoring the syntax errors;
n=7623
n/10== 762
result=>762*10+*;
this means that the result itself should be initialized to
'0' so that there would a right output..
So output will be garbage value ...
to my knowledge
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / bobby shankar
it will display something garbage
because value of result is not
initialised .
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / arif shaik
The variables n,tempand result what type data it may be?,It
first Displays an error "Statement missing ; in function
main". If it is rectified then the answer should depends on
data type of that variables and their initialized values.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vignesh1988i
assuming that the variables that are used above are integers....
the result will be : depends on the user....
| Is This Answer Correct ? | 0 Yes | 1 No |
Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)
what is recursion in C
Write a program in c to replace any vowel in a string with z?
#include<stdio.h> int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }
How do I use strcmp?
Write a c pgm for leap year
11 Answers College School Exams Tests, IBM, TCS,
How pointer is different from array?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output?
Explain 'bit masking'?
What does malloc () calloc () realloc () free () do?
What are global variables?