Basic and Advance C Interview Questions and Answers
Download C Programming Interview eBook

Download Interview Questions And Answers PDF Download C Programming Interview Questions

C Programming Questions and Answers:

1 :: How do we print only part of a string in C?

/* Use printf() to print the first 11 characters of source_str. */
printf(First 11 characters: ‘%11.11s’n, source_str);
Is This Answer Correct?    12 Yes 7 No
Place Your Answer

2 :: What is a pointer value and address in C?

A pointer value is a data object that refers to a memory location. Each memory locaion is numbered in the memory. The number attached to a memory location is called the address of the location.
Is This Answer Correct?    10 Yes 2 No
Place Your Answer

3 :: What is a static function in C?

A static function is a function whose scope is limited to the current source file. Scope refers to the visibility of a function or variable. If the function or variable is visible outside of the current source file, it is said to have global, or external, scope. If the function or variable is not visible outside of the current source file, it is said to have local, or static, scope.
Is This Answer Correct?    9 Yes 4 No
Place Your Answer

4 :: What is a pointer variable in C language?

A pointer variable is a variable that may contain the address of another variable or any valid address in the memory.
Is This Answer Correct?    13 Yes 0 No
Place Your Answer

5 :: What is a void pointer in C?

A void pointer is a C convention for a raw address. The compiler has no idea what type of object a void Pointer really points to. If you write
int *ip;
ip points to an int. If you write
void *p;
p doesn’t point to a void!
In C and C++, any time you need a void pointer, you can use another pointer type. For example, if you have a char*, you can pass it to a function that expects a void*. You don’t even need to cast it. In C (but not in C++), you can use a void* any time you need any kind of pointer, without casting. (In C++, you need to cast it).
A void pointer is used for working with raw memory or for passing a pointer to an unspecified type.
Some C code operates on raw memory. When C was first invented, character pointers (char *) were used for that. Then people started getting confused about when a character pointer was a string, when it was a character array, and when it was raw memory.
Is This Answer Correct?    7 Yes 0 No
Place Your Answer

Place Your Question



Top: Basic and Advance C Interview Questions and Answers
Basic and Advance C Interview Questions and Answers

Subscribe your email to receive free updates:

Enter your email address and get free job hunting tips, career advices, job vacancies, interview questions updates directly delivered to your email inbox




Top Frequently Asked C Programming Question
Frequently Asked C Programming Job Interview Question


Top Frequently opened Computer Programming Job Interview categories
Most popular Computer Programming Job Interview categories

Comments About Basic and Advance C Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about Basic and Advance C Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 20th of June 2013

    Webmaster Said

    Tell us what you feel about Basic and Advance C Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on Basic and Advance C Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding Basic and Advance C Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: Basic and Advance C Interview Questions and Answers
Comments on Basic and Advance C Interview Questions and Answers

 
Top of Link back to Basic and Advance C Interview Questions and Answers
Link back to Basic and Advance C Interview Questions and Answers
 
Subscribe | Directory | Forum | Blog