Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to Increment the value of the empid E001 for each and
every employee by using the programe?



How to Increment the value of the empid E001 for each and every employee by using the programe?..

Answer / akshay

Algorithm:
1.Take last used value into string variable.
2. Use String function to remove alphabet from value and store in temp string.
3. convert remaining part into int32.
4. increment by 1.
5. Append temp string and incremented value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass

6 Answers   Wipro,


what is the diffrence between c# and c++

5 Answers  


Can we create object of interface?

0 Answers  


What is a class?

32 Answers   Infosys, TCS, Thylak,


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


What is methods in oop?

0 Answers  


How would you stop a class from class from being derived or inherited.

18 Answers   Ness Technologies,


swapping program does not use third variable

5 Answers   TCS,


A file pointer always contains the __________ of the file

5 Answers  


Why and when is a virtual destructor needed?

5 Answers  


Can an interface inherit a class?

0 Answers  


What is polymorphism in oops?

1 Answers  


Categories