n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Answer Posted / 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 |
Post New Answer View All Answers
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
What is the use of pointers in C?
Explain what is a program flowchart and explain how does it help in writing a program?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
How do you print only part of a string?
What are global variables and explain how do you declare them?
Do pointers store the address of value or the actual value of a variable?
What is the difference between functions abs() and fabs()?
What is getch() function?
How can I sort a linked list?
How do we print only part of a string in c?
explain what are pointers?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Explain how can I convert a number to a string?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?