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

19 comments:

  1. sir,pls send all questions answers to my mail.

    ReplyDelete
  2. Answers for All questions takes a lot of time!!!!!
    You specify what are all the questions needed to you
    then there is a reply

    ReplyDelete
  3. 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

    ReplyDelete
  4. dinesh,, i thnk u doing a wonderful job./,.thanks for the questions

    ReplyDelete
  5. pls send the answers for files,basic interview qustns,pointers and union to chandrakanthr09@gmail.com

    ReplyDelete
  6. 1'st question answer is so simple just think of it once. .

    logic 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);
    }


    ReplyDelete
  7. 2'nd question is so what complex which cannot be understand by seeeing code


    ReplyDelete
  8. Program to reverse a Double linked list is

    Steps 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. .

    ReplyDelete
  9. Answers for FILEs

    1.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

    ReplyDelete
  10. 2. FILE pointer is basically a structure pointer which indirectly points to a structure which holds the FILE stream

    ReplyDelete
  11. 4.SIZE of FILE type changes from operating system to operating system

    for example in LINUX :sizeof(FILE)=148;
    in Windows :Sizeof(FILE)=16;

    ReplyDelete
  12. No we cannot increment the file pointer,
    if we do so the entire stream holded by structure pointer is will be lost.

    SO never try to increment the File pointer

    ReplyDelete
  13. hi dinesh,nice collection and try to collect more....

    ReplyDelete
  14. send ans for basic questions dinesh.....to mozhi.susi@gmail.com

    ReplyDelete

Created By NAGA DINESH