Enable contrast version

# Tutor profile: Nitish D.

Inactive
Nitish D.
Graduate Student pursuing masters in Computer Engineering at NYU
Tutor Satisfaction Guarantee

## Questions

### Subject:Computer Networking

TutorMe
Question:

Which is faster between a router and bridge and why ?

Inactive
Nitish D.

Bridge is faster as compared to Router as it operates in the Data Link Layer and makes the forwarding decision based on the MAC address but Router makes the decisions based on IP addresses because it operates in Network layer.

### Subject:C++ Programming

TutorMe
Question:

How to check if a given number is palindrome or not ?

Inactive
Nitish D.

using namespace std; int main() { int n, num, digit, rev = 0; cout << "Enter a positive number: "; cin >> num; n = num; do { digit = num % 10; rev = (rev * 10) + digit; num = num / 10; } while (num != 0); cout << " The reverse of the number is: " << rev << endl; if (n == rev) cout << " The number is a palindrome"; else cout << " The number is not a palindrome"; return 0; }

### Subject:C Programming

TutorMe
Question:

How can you use structures as pointers ? Explain with the help of examples.

Inactive
Nitish D.

#include<string.h> #include<stdio.h> struct book { char title[30]; char author[40]; int bookid; }; void printbook(struct book *books); int main() { struct book b1; struct book b2; strcpy(b1.title,"abc"); strcpy(b1.author,"xyz"); b1.bookid=7586; strcpy(b2.title,"abc"); strcpy(b2.author,"xyz"); b2.bookid=5435; printbook(&b1); printbook(&b2); return 0; } void printbook(struct book *books) { printf("Book title: %s\n",books->title); printf("Book author: %s\n",books->author); printf("Book number: %d\n",books->bookid); }

## Contact tutor

Send a message explaining your
needs and Nitish will reply soon.
Contact Nitish