[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-391235-105":59,"doc-detail-391235-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","c-language-questions-and-answers-study-interview-quick-reference","C Language Questions and Answers - Study & Interview Quick Reference","","A C language revision set covering core concepts through 100+ interview-style Q&A. Topics include variables and storage classes, pointers (including void/NULL and pointer arithmetic), arrays vs linked lists, structures vs unions, memory allocation functions like malloc/calloc/realloc, preprocessor and header includes, standard I/O and file streams, plus recursion, command-line arguments, and token/identifier basics. Designed for fast recall of definitions and distinctions for interviews and quick reference.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/c-language-questions-and-answers-study-interview-quick-reference/391235/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/c-language-questions-and-answers-study-interview-quick-reference/391235.png","ImageObject",300,407,{"name":92,"@type":93},"Bintang","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-09","2026-09-25",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",14,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What is a static variable in C?","Question",{"text":113,"@type":114},"Static variables keep their values between function calls. They are initialized only once within the scope where they are defined.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What is the difference between structures and unions?",{"text":118,"@type":114},"Structures and unions differ in how they store data: a structure can hold separate members simultaneously, while a union shares the same memory location among its members.",{"name":120,"@type":111,"acceptedAnswer":121},"What are malloc, calloc, and realloc used for?",{"text":122,"@type":114},"malloc allocates dynamic memory, calloc allocates memory and initializes it, and realloc changes the size of previously allocated dynamic memory.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},391235,1790367356,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":4},962085564381,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","C Language Questions and Answers  \nAbstract  \nThis PDF contains 100+ Q&A on C Language to help you remind yourself of basic concepts and definitions. Especially helpful for Interviews and quick references.  \n1. What does static variable mean?  \n2. What is a pointer?  \n3. What are the uses ofa pointer?  \n4. What is a structure?  \n5. What is a union?  \n6. What are the differences between structures and union?  \n7. What are the differences between structures and arrays?  \n8. In header files whether functions are declared or defined?  \n9. What are the differences between malloc () and calloc ()?  \n10. What are macros? What are its advantages and disadvantages?  \n11. Difference between pass by reference and pass by  \n12. What is static identifier?  \n13. Where is the auto variables stored?  \n14. Where does global, static, and local, register  \n15. Difference between arrays and linked list?  \n16. What are enumerations?  \n17. Describe about storage allocation and scope of  \n18. What are register variables? What are the advantages  \n19. What is the use of typedef?  \n20. Can we specify variable field width in a scanf()  \n21. Out offgets() and gets() which function is safe to use and why?  \n22. Difference between strdup and strcpy?  \n23. What is recursion?  \n24. Differentiate between a for loop and a while loop? What are it uses?  \n25. What is storage class.What are the different storage classes in C?  \n26. What the advantages of using Unions?  \n27. What is the difference between Strings and Arrays?  \n28. What is a far pointer? where we use it?  \n29. What is a huge pointer?  \n30. What is a normalized pointer ,how do we normalize a pointer?  \n31. What is near pointer.  \n32. In C, why is the void pointer useful? When would you use it?  \n33. What is a NULL Pointer? Whether it is same as an uninitialized pointer?  \n34. Are pointers integer ?  \n35. What does the error ‘Null Pointer Assignment’ means and what causes this error?  \n36. What is generic pointer in C?  \n37. Are the expressions arr and &arr same for an array of integers?  \n38. How pointer variables are initialized ?  \n39. What is static memory allocation ?  \n40. What is dynamic memory allocation?  \n41. What is the purpose of realloc ?  \n42. What is pointer to a pointer.  \n43. What is an array of pointers ?  \n44. Difference between linker and linkage ?  \n45. Is it possible to have negative index in an array?  \n46. Why is it necessary to give the size of an array in an array declaration ?  \n47. What modular programming ?  \n48. What is a function ?  \n49. What is an argument ?  \n50. What are built in functions ?  \n51. Difference between formal argument and actual argument ?  \n52. Is it possible to have more than one main() function in a C program ?  \n53. What is the difference between an enumeration and a set of pre-processor  \n\\# defines?  \n54. How are Structure passing and returning implemented by the complier?  \n55. What is the similarity between a Structure, Union and enumeration?  \n56. Can a Structure contain a Pointer to itself?  \n57. How can we read/write Structures from/to data files?  \n58. Write a program which employs Recursion ?  \n59. Write a program which uses Command Line Arguments?  \n60. Difference between array and pointer ?  \n61. What do the ‘c’and ‘v’ in argc and argv stand for?  \n62. What are C tokens ?  \n63. What are C identifiers?  \n64. Difference between syntax vs logical error?  \n65. What is preincrement and post increment ?  \n66. Write a program to interchange 2 variables without using the third one.  \n67. What is the maximum combined length of command line arguments including the space  \nbetween adjacent arguments?  \n68. What are bit fields? What is the use of bit fields in a Structure declaration?  \n69. What is a preprocessor, What are the advantages of preprocessor ?  \n70. What are the facilities provided by preprocessor ?  \n71. What are the two forms of \\#include directive ?  \n72. How would you use the functions randomize() and random()?  \n73. What do the func","cbCaipkl0v0ntODl","https://ap.wps.com/l/cbCaipkl0v0ntODl","pdf",1179301,"English","# Questions\n## Data types, variables, and storage\n## Pointers, arrays, and memory\n## Structures, unions, and typedef\n## Preprocessor, functions, and arguments\n## Files, streams, and file I/O\n## Expressions, errors, and arithmetic\n## Programming concepts (recursion, loops, commands)\n## Miscellaneous C topics","[{\"question\":\"What is a static variable in C?\",\"answer\":\"Static variables keep their values between function calls. They are initialized only once within the scope where they are defined.\"},{\"question\":\"What is the difference between structures and unions?\",\"answer\":\"Structures and unions differ in how they store data: a structure can hold separate members simultaneously, while a union shares the same memory location among its members.\"},{\"question\":\"What are malloc, calloc, and realloc used for?\",\"answer\":\"malloc allocates dynamic memory, calloc allocates memory and initializes it, and realloc changes the size of previously allocated dynamic memory.\"}]","C Language Questions and Answers - Study & Interview Quick Reference | PDF",1790350259,48]