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


Please Help Members By Posting Answers For Below Questions

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: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

1513


What is the use of pointers in C?

620


Explain what is a program flowchart and explain how does it help in writing a program?

649


"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

660


How do you print only part of a string?

615






What are global variables and explain how do you declare them?

580


Do pointers store the address of value or the actual value of a variable?

610


What is the difference between functions abs() and fabs()?

651


What is getch() function?

649


How can I sort a linked list?

635


How do we print only part of a string in c?

587


explain what are pointers?

619


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2030


Explain how can I convert a number to a string?

650


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1453