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;
How do you declare an integer variable? Explain with an example.
#questionAt a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets
A: A dangling pointer arises while you use the address of an object after its lifetime is end. It may occur in situations such as returning addresses of automatic variables from a
The program reads two numbers and a character (operator). If the character is "+" then sum is displayed. If it is "-"then difference is displayed. If it is "*" then product is disp
Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send
For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively.
program that convert take decimal digit and convert it to binart digit
Define Some Features of Automatic Variables in C program? The features of automatic variables are like as Storage - memory Default initial value - an unpredictable value,
How does placing some code lines between comment symbols help in debugging the code? - Placing comment symbols /* */ around a code separates some code that coder believes might
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd