[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-300758-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-300758-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","foundation-exam-reference-sheet-stdlibh-functions-malloc-calloc-realloc-free-srand-rand-abs-atoi-atof-mathh-functions-pow-sqrt-fabs-exp-log-stringh-functions-strcmp-strlen-strcpy-strcat-summation-formulas","Foundation Exam Reference Sheet - stdlib.h Functions - malloc calloc realloc free srand rand abs atoi atof - math.h Functions - pow sqrt fabs exp log - string.h Functions - strcmp strlen strcpy strcat - Summation Formulas","","Foundation Exam Reference Sheet compiling key C library function prototypes and mathematical summation formulas for quick revision. It lists memory management routines (malloc, calloc, realloc, free), random number utilities (srand, rand), integer and conversion helpers (abs, atoi, atof), and core math operations (pow, sqrt, fabs, exp, log). It also includes string operations for lexicographic comparison, length, copy, and concatenation (strcmp, strlen, strcpy, strcat) plus summation identities used in series calculations.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/foundation-exam-reference-sheet-stdlibh-functions-malloc-calloc-realloc-free-srand-rand-abs-atoi-atof-mathh-functions-pow-sqrt-fabs-exp-log-stringh-functions-strcmp-strlen-strcpy-strcat-summation-formulas/300758/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/foundation-exam-reference-sheet-stdlibh-functions-malloc-calloc-realloc-free-srand-rand-abs-atoi-atof-mathh-functions-pow-sqrt-fabs-exp-log-stringh-functions-strcmp-strlen-strcpy-strcat-summation-formulas/300758.png","ImageObject",300,407,{"name":42,"@type":43},"4398046744996","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-27","2026-09-19",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",8,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Which stdlib.h functions are included for memory management and what do they do?","Question",{"text":63,"@type":64},"The sheet includes malloc, calloc, realloc, and free. These allocate or resize heap memory and deallocate memory pointed to by ptr.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What mathematical functions from math.h are listed for exponentiation, roots, and logs?",{"text":68,"@type":64},"It lists pow(x,y) for powers, sqrt(x) for square roots, fabs(x) for absolute value, exp(x) for exponentials, and log(x) for natural logarithms.",{"name":70,"@type":61,"acceptedAnswer":71},"Which string functions are provided for comparison, length, copying, and concatenation?",{"text":72,"@type":64},"The sheet includes strcmp for lexicographic comparison, strlen for string length, strcpy for copying, and strcat for concatenation into destination strings.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},300758,1790528366,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":11,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":26,"language":138,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":139,"faqs":140,"seo_title":141,"seo_description":12,"update_tm":142,"read_time":96,"preview_page_count":4},4398046744996,"Foundation Exam Reference Sheet  \nstdlib.h functions  \n// Allocates size bytes and returns a pointer to the beginning // of the block of memory allocated.  \nvoid* malloc (size_t size);  \n// Allocates an array of nitems, each which is size bytes // big, sets all bits to 0 and returns a pointer to the // beginning of the block of memory allocated.  \nvoid* calloc(size_t nitems, size_t size);  \n// Attempts to resize the memory block pointed to by ptr to be // size bytes and returns a pointer to the beginning of the // block of memory allocated.  \nvoid* realloc(void* ptr, size_t size);  \n// Deallocates memory pointed to by ptr.  \nfree(void* ptr);  \n// Seeds the random number generator used by the rand function // with seed.  \nvoid srand(unsigned int seed);  \n// Returns a pseudo-random number in the range of 0 to // RAND_MAX (usually 32767) .  \nint rand(void);  \n// Returns the absolute value of x.  \nint abs(int x);  \n// Returns the string pointed to by str to its equivalent // integer value, so long as the string pointed to by str is // a valid integer.  \nint atoi(const char* str);  \n// Returns the string pointed to by str to its equivalent // float value, so long as the string pointed to by str is // a valid floating point number.  \nint atof(const char* str);  \nmath.h functions  \n// Returns x raised to the power y.  \ndouble pow(double x, double y);  \n// Returns the square root of x as long as x >= 0.  \ndouble sqrt(double x);  \n// Returns the absolute value of x.  \ndouble fabs(double x);  \n// Returns e raised to the power x.  \ndouble exp(double x);  \n// Returns the natural log of x, so long as x > 0.  \ndouble log(double x);  \nstring.h functions  \n// Returns a negative integer if the string pointed to by str1 // comes before the string pointed to by str2 lexicographically,// 0 if both strings are equal and a positive integer if the // string pointed to by str1 comes after the string pointed to // by str2 lexicographically.  \nint strcmp(const char* str1, const char* str2);  \n// Returns the length of the string pointed to by str.  \nint strlen(const char* str);  \n// Copies the contents of the string pointed to by src into // the string pointed to by dest and returns a pointer to the // memory address where the string was copied.  \nchar* strcpy(char* dest, const char* src);  \n// Appends the contents of the string pointed to by src // to the string pointed to by dest and returns a pointer to // the memory address of the beginning of the concatenated // string.  \nchar* strcat(char* dest, const char* src);  \nSummation Formulas  \n∑1 􀜿 = 􀜿􀝊 ∑1 􀝅 = 􀯡~~ ~~(􀯡2+1) , ∑1 􀝅 2 = 􀯡~~ ~~(􀯡+1)6(2􀯡+1), ∑1 􀝅 3 = 􀯡~~ ~~2~~ ~~(􀯡4+1)2 , ∑0 􀝔 􀯜 = 1􀯫 , |􀝔| \u003C 1","cbCaigTIq8XEnQBa","https://ap.wps.com/l/cbCaigTIq8XEnQBa","pdf",169479,"English","# stdlib.h functions\n## malloc, calloc, realloc, free\n## srand, rand, abs, atoi, atof\n# math.h functions\n## pow, sqrt, fabs, exp, log\n# string.h functions\n## strcmp, strlen, strcpy, strcat\n# Summation formulas","[{\"question\":\"Which stdlib.h functions are included for memory management and what do they do?\",\"answer\":\"The sheet includes malloc, calloc, realloc, and free. These allocate or resize heap memory and deallocate memory pointed to by ptr.\"},{\"question\":\"What mathematical functions from math.h are listed for exponentiation, roots, and logs?\",\"answer\":\"It lists pow(x,y) for powers, sqrt(x) for square roots, fabs(x) for absolute value, exp(x) for exponentials, and log(x) for natural logarithms.\"},{\"question\":\"Which string functions are provided for comparison, length, copying, and concatenation?\",\"answer\":\"The sheet includes strcmp for lexicographic comparison, strlen for string length, strcpy for copying, and strcat for concatenation into destination strings.\"}]","Foundation Exam Reference Sheet - stdlib.h Functions - malloc calloc realloc free srand rand abs atoi atof - math.h Functions - pow sqrt fabs exp log - string.h Functions - strcmp strlen strcpy strcat - Summation Formulas | PDF",1789777134]