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 and I oop mean?

0 Answers  


Tell us about yourself.

47 Answers   ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  






why c++ is a highlevel language

3 Answers   Satyam, Tech Mahindra,


what are the uses of C++

1 Answers  


What is multiple inheritance ?

17 Answers   Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,


Whats is abstraction in oops?

0 Answers  


What is oops in simple words?

0 Answers  


How do you define social class?

0 Answers  


what is data hiding.

3 Answers   Wipro,


Categories