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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does oop mean in snapchat?

673


What is the use of oops?

612


What language is oop?

589


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3240


program for insertion ,deletion,sorting in double link list

2274






What is class encapsulation?

584


Is react oop?

605


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

1782


What are the 4 main oop principles?

669


What do you mean by abstraction?

603


What is persistence in oop?

657


What exactly is polymorphism?

596


Can you inherit a private class?

629


What is encapsulation in oops?

530


What are main features of oop?

623