Briefly introduce your self, and current project you are working.
How to check a number, whether it is power of 2 or not.
#include
How to delete a node in linklist, when one address of that node is given.
void deleteNodeWithoutHead(struct Node* pos)
How to find the nth node in linklist from back.
Use 2 pointers:-
What is volatile.
Things which are all changeable is volatile. for example, int a=5; a=a+1; //value changes,this is volatile. by default all variables are volatile.
What is mutex and semaphore, what is difference in both, is binary
what is virtual memory.
Some questions from paging, what is it, how to get address.
How to implement sizeof operator.
Some basic networking question Broadcom Ltd Interview Questions
Top 10 Broadcom Ltd Interview Questions With Answer
Question: 1 / 10
Question: 2 / 10
int main()
{
int x;
scanf("%d",&x);
if((x)&&!(x&(x-1)))
{
printf(" %d is power of 2\n",x);
}
else
{
printf(" %d not power of 2 \n",x);
}
}Question: 3 / 10
{
if (*pos == NULL) // If linked list is empty
return;
else {
struct Node* temp = pos->next;
// Copy data of the next node to current node
pos->data = pos->next->data;
// Perform conventional deletion
pos->next = pos->next->next;
free(temp);
}
return 0;
}Question: 4 / 10
pNthNode
pTemp
Both the nodes point to the HEAD of the list. pNthNode starts moving only after pTemp has moved n nodes forward. From there, both nodes move forward until pTemp reaches NULL.
pNthNode now points at the nth node from the end.
/*
Defining a function to find the nth node from the end.
*/
struct node * nthNodeFromEnd(struct node * head, int n)
{
// we need to find the nth node from the end.
struct node * pTemp = head;
struct node * pNthNode = head;
int nCurrentElement = 0;
int counter = 0;
while(counter != n)
{
pTemp = pTemp -> next;
counter++;
}
while(pTemp != NULL)
{
pNthNode = pNthNode -> next;
pTemp = pTemp -> next;
}
return pNthNode;
}Question: 5 / 10
Question: 6 / 10
Question: 7 / 10
Question: 8 / 10
Question: 9 / 10
#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)
int
main()
{
double
x;
printf
(
"%d"
, my_sizeof(x));
getchar
();
return
0;
}
Question: 10 / 10
Home > Experience Archives > List of Companies > Broadcom Ltd
Accenture
Adobe
Alcatel-Lucent
Alten Calsoft Lab
Amazon
Amdocs
Aricent
Arris
Broadcom Ltd
Brocade
CA Technologies
Capgemini
Cavium Networks
CenturyLink
Ciena
Cisco
Citrix
Cognizant
Comcast
CSC (DXC Technology)
Dell EMC
Deloitte
EFI
Ericsson
Extreme Network
Genpact
Gigamon
Global Edge
GlobalLogic
Goldman Sachs
Happiest Minds
HCL Technologies
Hewlett Packard Enterprise
IDS Infotech
Incedo
Infinite C S
IpInfusion
J.P. Morgan
Juniper Network
L&T Technology Services
MindTree
MosChip Semiconductor
NEC Technologies
NIIT Technologies
OLA
One Access
PayPal
Qualcomm
Radisys
Redeem Software
Reliance Jio
Rolta India Limited
Samsung
Sasken
Siemens
Synopsys
Tavant Technologies
TCS
Tech Mahindra
Wipro
XiLinx