C FAQ's for Interview
To get answers for any questions given below,you can JOIN OUR SITE,post your request along with your email id as comment,Then answers of required question is Given
BASIC INTERVIEW QUESTIONS
1. Write a program to subtract a number without using subtraction operator
2. Program to reverse a linked list using recursion
3. Program to Accept a string and make that string in Alphabetical order
4. Write a program to convert a decimal number to any base
5. Implement a stack based array
6. Program to reverse a double linked list
7. Program to convert little endian to big endian
8. Write a program to reverse a string using recurssion
9. How do you compare a floating point numbers
10. Write a program to implement a memcopy function
2. Program to reverse a linked list using recursion
3. Program to Accept a string and make that string in Alphabetical order
4. Write a program to convert a decimal number to any base
5. Implement a stack based array
6. Program to reverse a double linked list
7. Program to convert little endian to big endian
8. Write a program to reverse a string using recurssion
9. How do you compare a floating point numbers
10. Write a program to implement a memcopy function
sir,pls send all questions answers to my mail.
ReplyDeleteAnswers for All questions takes a lot of time!!!!!
ReplyDeleteYou specify what are all the questions needed to you
then there is a reply
hiiii DINESH ,,,,,your way of thinking is super,it is very useful stuff for students like me to understand c program and etc....collect more information and try to devlope your blog better,,ALL THE BEST
ReplyDeletethank you naresh
ReplyDeletenice
ReplyDeletethank you anna
Deletedinesh,, i thnk u doing a wonderful job./,.thanks for the questions
ReplyDeleteThank you jackey. .
Deletepls send the answers for files,basic interview qustns,pointers and union to chandrakanthr09@gmail.com
ReplyDelete1'st question answer is so simple just think of it once. .
ReplyDeletelogic is: a+~b+1;
#include
main()
{
int a,b;
printf("enter the values of a and b\n");
scanf("%d %d",&a,&b);
printf("%d",a+~b+1);
}
2'nd question is so what complex which cannot be understand by seeeing code
ReplyDeleteProgram to reverse a Double linked list is
ReplyDeleteSteps to be Followed
1.Intially Get the first and last node address and keep with you as Head address and Tail address.
2.Each node in Double linked list contians Two pointer links i.e Front and back links
SWAP front and back links in each node of list.
3.And Finally Swap the HEAD nad TAIL address the the List is reversed. .
Answers for FILEs
ReplyDelete1.Basically File is a collection of data or records used to store permantly.
FILE is a type defined structure present in STDIO.H
for clear understanding
typedef struct
{
short level ;
short token ;
short bsize ;
char fd ;
unsigned flags ;
unsigned char hold ;
unsigned char *buffer ;
unsigned char * curp ;
unsigned istemp;
}FILE ;
Here FILE is a new user defined data type whose members are shown above
So basially FILE is a structure
2. FILE pointer is basically a structure pointer which indirectly points to a structure which holds the FILE stream
ReplyDelete4.SIZE of FILE type changes from operating system to operating system
ReplyDeletefor example in LINUX :sizeof(FILE)=148;
in Windows :Sizeof(FILE)=16;
No we cannot increment the file pointer,
ReplyDeleteif we do so the entire stream holded by structure pointer is will be lost.
SO never try to increment the File pointer
hi dinesh,nice collection and try to collect more....
ReplyDeleteHope You liked my page
ReplyDeletesend ans for basic questions dinesh.....to mozhi.susi@gmail.com
ReplyDelete