placement Paper
Answers were Sorted based on User's Feedback
Answer / monsterindia.com
sir,provides to me ebix placement Paper.
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / priti
please post me Ebix placement paper which will help me to get
placement
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / printf
# 1
/*OPERATIONS ON SINGLY LINKED LIST*/
#include<stdio.h>
#include<conio.h>
struct link
{
int item;
struct link *next;
};
typedef struct link node;
void addfirst();
void addlast();
void addmid();
void delfirst();
void dellast();
void delmid();
void display();
node *head=NULL;
void main()
{
int ch;
clrscr();
do
{
printf("\nSINGLY LINKED LIST OPERATIONS\n");
printf("\n1.Addfirst\n2.AddMid\n3.AddLast\n4.DeleteFirst\n5.DeleteMiddle\n6.DeleteLast\n7.Display\n8.Exit\n");
printf("Enter your option:\t");
scanf("%d",&ch);
switch(ch)
{
case 1:
addfirst();
display();
break;
case 2:
addmid();
display();
break;
case 3:
addlast();
display();
break;
case 4:
delfirst();
display();
break;
case 5:
delmid();
display();
break;
case 6:
dellast();
display();
break;
case 7:
display();
break;
case 8:
exit(0);
break;
default:
printf("Invalid Choice\n");
}
}
while(ch<=8);
getch();
}
void addfirst()
{
node *temp;
temp=(node *)malloc(sizeof(node));
printf("Enter the data....\t");
scanf("%d",&temp->item);
temp->next=head;
head=temp;
}
void addmid()
{
int i=1,pos;
node *cur=head,*temp;
printf("\nEnter the position\t");
scanf("%d",&pos);
while(pos!=i+1&&cur!=NULL)
{
cur=cur->next;
i++;
}
if(pos==i+1)
{
temp=(node *)malloc(sizeof(node));
printf("Enter the data...");
scanf("%d",&temp->item);
temp->next=cur->next;
cur->next=temp;
}
}
void addlast()
{
node *temp,*cur=head;
temp=(node *)malloc(sizeof(node));
printf("\nEnter the data....");
scanf("%d",&temp->item);
while(cur->next!=NULL)
{
cur=cur->next;
}
temp->next=cur->next;
cur->next=temp;
}
void delfirst()
{
node *temp=head;
head=head->next;
printf("Deleted item is %d\n",temp->item);
free(temp);
}
void delmid()
{
int i=1,pos;
node *cur=head,*temp;
printf("Enter the position to be deleted\t");
scanf("%d",&pos);
while(pos!=i+1&&cur->next!=NULL)
{
cur=cur->next;
i++;
}
if(pos==i+1)
{
temp=cur->next;
cur->next=temp->next;
printf("Deleted item is %d\n",temp->item);
free(temp);
}
}
void dellast()
{
node *temp,*cur=head;
while(cur->next->next!=NULL)
{
cur=cur->next;
}
temp=cur->next;
cur->next=NULL;
printf("Deleted item is %d\n",temp->item);
free(temp);
}
void display()
{
node *cur=head;
printf("\nHead->");
while(cur!=NULL)
{
printf("\t%d",cur->item);
cur=cur->next;
}
printf("<-NULL\n");
}
| Is This Answer Correct ? | 5 Yes | 2 No |
2012 papers
sample question papers of office trainee -HR in HPCL
Lucknow Hcl Technologies Placement Paper 12 Feb 2007
Facetime - Testing
Accenture Interview rounds and Placement Procedure
bhel
Hi, Sir my name is Alka Singh I applied for HPCL in HR discipline. I need placement paper of last 2 yeras of HR and aptitude test, please help me.
i wanna join d job for our pertionalty
HCL placement papers ---------placement paper 1
Chatargee Placement Papers -------- Placement Paper 1
Patni Coimbatore Interview Placement Paper In Coiambatore
NIIT Campus Placements Apr-11-2007
Software (196929)
Sciences (12521)
Engineering (38023)
Business Management (7372)
Accounting (11552)
Advertising Media (662)
Architecture Design (207)
Call Centre (2482)
Fashion Modelling (332)
Government (17383)
Law (806)
Tourism Hotel (377)
Everything Else (2322)
Military Police (160)
Skills Abilities (0)
Aptitude Questions (4305)
Placement Papers (705)
Certifications (3752)
Visa Interview Questions (2231)
Code Snippets (1098)
Entrance Exams (862)
ERRORS (16636)