Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Operation on list - c++ program:
Write a program in c to Insert value on list and list iteration.
typedef struct item *node_ptr;
struct item {
int element;
node_ptr next;
}
typedef node_ptr list;
typedef node_ptr position;
void main()
{
list head;
void create(list);
void print(list);
head=(list)malloc(sizeof(struct item));
head->next=NULL;
create(head);
print(head);
void create(list head)
position temp;
char opt;
while (1)
printf("Enter yuor option\n");
flushall();
scanf("%c",&opt);
if(opt=='n'||opt=='N')
return;
if(head->next== NULL)
head->next=temp=(position)malloc(sizeof(struct item));
else
temp=temp->next=(position)malloc(sizeof(struct item));
temp->next =NULL;
scanf("%d",&temp->element);
void print(list head)
{ position temp;
temp =head->next;
while (temp !=NULL)
printf("%d",temp->element);
temp=temp->next;
Question 1. Explain Briefly about class and objects. 2. Create a class string which stores a string value. Overload ++ operator which converts the characters of the string t
Can copy constructor admit an object of the same class as parameter, rather than reference of the object?
data structure ?
Design a lift for 3 levels
write an algorithm for linear search algorithm
Write a Program to illustrate Array? int x[100]; char text[80]; float temp[30]; static int marks[5]; We are able to use symbolic constants instead of expression. The valu
The size of () operator This is a pseudo-operator given by the language, which returns the number of bytes taken up by a variable or data type. The value returned by this opera
Q: How the compiler arranges the several sections in the executable image? A: The executable contained following sections: 1. Data Section (initialized data variable sec
Define the Int Data Type of C Language? The int is used to define integer numbers. The Integers are whole numbers with a range of values supported by a particular machine and t
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd