Published by Addison-Wesley Professional (November 25, 2013) © 2014
Stephen Prata
Clear guidance about when and why to use different parts of the language
Hands-on learning with concise and simple examples that develop your understanding of a concept or two at a time
Hundreds of practical sample programs
Review questions and programming exercises at the end of each chapter to test your understanding
Coverage of generic C to give you the greatest flexibility
\"}},\"bulk_discount_rates\":[],\"meta_keywords\":\"\",\"show_quantity_input\":1,\"title\":\"C Primer Plus ,6th edition::9780133432381\",\"gift_wrapping_available\":false,\"min_purchase_quantity\":0,\"customizations\":[],\"images\":[{\"data\":\"https://cdn11.bigcommerce.com/s-venoj14f0m/images/stencil/{:size}/products/3810/1178/0133432386__60836.1733794059.jpg?c=1\",\"alt\":\"C Primer Plus ,6th edition::9780133432381\"}]},\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2V1LnBlYXJzb24uY29tIl0sImVhdCI6MTczNzk1ODczNiwiaWF0IjoxNzM3Nzg1OTM2LCJpc3MiOiJCQyIsInNpZCI6MTAwMzEwNzQ4OCwic3ViIjoiQkMiLCJzdWJfdHlwZSI6MCwidG9rZW5fdHlwZSI6MX0.DRWnTfyQvg9qUB4sy7vYSuXpcxcozvGf6fSDcJxY-REL4NIhvjqSwsLQCUoNl4k7fC99q5QAD4Yw_LgIcHMZHg\",\"productTitle\":\"C Primer Plus ,6th edition::9780133432381\",\"productPrice\":{\"with_tax\":{\"formatted\":\"€27,99\",\"value\":27.99,\"currency\":\"EUR\"},\"tax_label\":\"VAT\"},\"isShowAccessInfoForTabs\":true,\"defaultImageURL\":\"https://cdn11.bigcommerce.com/s-venoj14f0m/stencil/90386640-9a81-013d-dfd3-36c5b9d257b8/img/ProductDefault.jpeg\",\"consolidationOfVitalSourceEtext\":true,\"programPPID\":\"P200000000546\",\"ecomProductType\":\"Vitalsource\",\"bcType\":\"Product\",\"showSwatchNames\":true,\"productSku\":\"9780133432381\",\"cartItems\":[]}"); const { bcType, programPPID, token, childSKU, ecomProductType, productId, productTitle, productPrice, cartItems, isShowAccessInfoForTabs, consolidationOfVitalSourceEtext, defaultImageURL } = jsContext const store = "nordics" const isIndiaStore = store === 'india' const productSKU = '9780133432381' const PPIDS = (programPPID || childSKU || "").split(","); const $tabs = document.querySelector(".product-tabs"); const $programTitle = document.querySelector('.productView-title') const $addToCart = document.getElementById('form-action-addToCart'); function renderTabWithoutProgram() { $programTitle.innerText = productTitle.includes('::') ? productTitle.split('::')[0] : productTitle const $tab = document.createElement('li') $tab.classList.add('is-active'); const $link = document.createElement('a') const $content = document.createElement('span') const $typeLabel = document.createElement('p') $typeLabel.classList.add('ecomProduct'); $typeLabel.textContent = ecomProductType === 'Vitalsource' ? (consolidationOfVitalSourceEtext ? 'eTextbook' : 'VitalSource') : ecomProductType; const $priceLabel = document.createElement('p') $priceLabel.classList.add('ecomProduct-price'); $priceLabel.textContent = productPrice.with_tax.formatted; $content.appendChild($typeLabel); $content.appendChild($priceLabel); $link.appendChild($content); $tab.appendChild($link); $tabs.appendChild($tab); } if (!programPPID) renderTabWithoutProgram() const graphqlEndpoint = `/graphql`; const query = ` query FindProductBySku($sku: String!) { site { product(sku: $sku) { entityId name sku path description defaultImage { urlOriginal } customFields { edges { node { name value } } } prices(includeTax: true) { price { value formatted currencyCode } basePrice { value formatted } salePrice { value formatted } } } } } `; let products = []; const langabbr = { "AZ": "Azerbaijani", "BA": "Bashkir", "EU": "Basque", "BE": "Belarusian", "BN": "Bengali", "AR": "Arabic", "HY": "Armenian", "AS": "Assamese", "AY": "Aymara", "DZ": "Bhutani", "BH": "Bihari languages", "BI": "Bislama", "BS": "Bosnian", "BR": "Breton", "EB": "British English", "BG": "Bulgarian", "MY": "Burmese", "CA": "Catalan or Valencian", "CM": "Chinese Simplified", "CT": "Chinese Traditional", "CO": "Corsican", "HR": "Croatian", "CS": "Czech", "DA": "Danish", "DR": "Dari", "NL": "Dutch or Flemish", "ET": "Estonian", "FI": "Finnish", "FR": "French", "GL": "Galician", "KA": "Georgian", "DE": "German", "EL": "Greek, Modern (1453-)", "GN": "Guarani", "GU": "Gujarati", "HA": "Hausa", "HE": "Hebrew", "HI": "Hindi", "HU": "Hungarian", "IS": "Icelandic", "ID": "Indonesian", "IU": "Inuktitut", "GA": "Irish", "IT": "Italian", "JA": "Japanese", "JW": "Javanese", "KN": "Kannada", "KS": "Kashmiri", "KK": "Kazakh", "RW": "Kinyarwanda", "KO": "Korean", "KU": "Kurdish", "LA": "Latin", "LN": "Lingala", "LT": "Lithuanian", "MK": "Macedonian", "MG": "Malagasy", "MS": "Malay", "ML": "Malayalam", "MT": "Maltese", "MI": "Maori", "MR": "Marathi", "MN": "Mongolian", "NE": "Nepali", "NO": "Norwegian", "OR": "Oriya", "FA": "Persian (Farsi)", "PL": "Polish", "PT": "Portuguese", "QU": "Quechua", "RU": "Russian", "SM": "Samoan", "SA": "Sanskrit", "SR": "Serbian", "SN": "Shona", "SD": "Sindhi", "SK": "Slovak", "SL": "Slovenian", "SO": "Somali", "ES": "Spanish or Castilian", "SU": "Sundanese", "SW": "Swahili", "SV": "Swedish", "TL": "Tagalog", "TG": "Tajik", "TA": "Tamil", "TT": "Tatar", "TE": "Telugu", "TH": "Thai", "BO": "Tibetan", "TI": "Tigrinya", "TS": "Tsonga", "TR": "Turkish", "TK": "Turkmen", "TW": "Twi", "UK": "Ukrainian", "UR": "Urdu", "UZ": "Uzbek", "VI": "Vietnamese", "CY": "Welsh", "WO": "Wolof", "XH": "Xhosa", "YI": "Yiddish", "YO": "Yoruba", "ZU": "Zulu", "FJ": "Fijian", "FO": "Faroese", "FY": "Western Frisian", "GD": "Gaelic or Scottish Gaelic", "GV": "Manx", "IA": "Interlingua", "IE": "Interlingue; Occidental", "IK": "Inupiak", "KL": "Kalaallisut; Greenlandic", "KM": "Laothian", "KY": "Kirghiz; Kyrgyz", "LO": "Lao", "LV": "Latvian", "RO": "Romanian or Moldavian or Moldovan", "NA": "Nauru", "OC": "Occitan", "OM": "Oromo", "PA": "Panjabi or Punjabi", "PS": "Pushto; Pashto", "RM": "Romansh", "RN": "Rundi", "SG": "Sango", "SH": "Serbo-Croatian", "SI": "Sinhala; Sinhalese", "SS": "Swati", "ST": "Sotho, Southern", "TN": "Tswana", "TO": "Tonga", "UG": "Uighur; Uyghur", "VO": "Volapuk", "N/A": "Not Applicable", "TBD": "To Be Determined", "AB": "Abkhazian", "AA": "Afar", "AF": "Afrikaans", "SQ": "Albanian", "EA": "American English", "AM": "Amharic", "EN": "English", "SE": "Northern Sami", "OJ": "Ojibwa", "OS": "Ossetian; Ossetic", "PI": "Pali", "SC": "Sardinian", "II": "Sichuan Yi; Nuosu", "TY": "Tahitian", "VE": "Venda", "WA": "Walloon", "ZA": "Zhuang; Chuang", "AK": "Akan", "AN": "Aragonese", "AV": "Avaric", "AE": "Avestan", "BM": "Bambara", "NB": "Bokmål, Norwegian; Norwegian Bokmål", "CH": "Chamorro", "CE": "Chechen", "NY": "Chichewa; Chewa; Nyanja", "CU": "Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic", "CV": "Chuvash", "KW": "Cornish", "CR": "Cree", "DV": "Divehi; Dhivehi; Maldivian", "EE": "Ewe", "FF": "Fulah", "IG": "Ganda", "HT": "Haitian; Haitian Creole", "HZ": "Herero", "HO": "Hiri Motu", "IO": "Ido", "KR": "Kanuri", "KI": "Kikuyu; Gikuyu", "KV": "Komi", "KG": "Kongo", "KJ": "Kuanyama; Kwanyama", "LI": "Limburgan; Limburger; Limburgish", "LU": "Luba-Katanga", "LB": "Luxembourgish; Letzeburgesch", "MH": "Marshallese", "NV": "Navajo; Navaho", "ND": "Ndebele, North", "NR": "Ndebele, South", "NG": "Ndonga", "ZH": "Chinese", "TLEMC": "Trilingual Eng-Malay-Chinese", "BLCE": "Bilingual Chinese-English" } async function getProductBySKUs(PPIDS) { for (const programPPID of PPIDS) { const requestOptions = { method: "POST", credentials: "same-origin", headers: { "Content-Type": "application/json", Authorization: "Bearer " + token, }, body: JSON.stringify({ query: query, variables: { sku: programPPID }, }), }; try { const response = await fetch(graphqlEndpoint, requestOptions); const data = await response.json(); const product = data?.data?.site?.product; const childSKU = product?.customFields?.edges.find( (el) => el?.node?.name === "ChildSKU" )?.node?.value; const hasNoProductSKU = childSKU && !childSKU.split(',').includes(productSKU); if (hasNoProductSKU) return renderTabWithoutProgram(); if (childSKU) { $programTitle.innerText = product.name.includes('::') ? product.name.split('::')[0] : product.name getProductBySKUs(childSKU.split(",")); break; } if(product) { products = [...products, product]; } } catch (error) {} } renderTabs(); return products; } getProductBySKUs(PPIDS); const countryUrlSegment = "c-primer-plus" const countrySuffixs = "" const $productViewType = document.getElementById("productViewType") function renderExtraInfoSpecificEachTab(ecomProductType) { const productTypeDetails = [ { type: 'Vitalsource', access: ['Instant access once purchased', 'Fulfilled by VitalSource'], features: ['Add notes and highlights', 'Search by keyword or page'] }, { type: 'eTextbook', access: ['Instant access fulfilled by Pearson', 'Offline and online access via mobile app', 'NB does NOT include access to MyLab/Mastering'], features: ['Add notes and highlights', 'Search by keyword or page', 'Stay organised with all your Pearson eTextbooks in one place'] }, { type: 'Mastering', access: ["Register via our Mastering page to complete your purchase", "A Course ID link or VLE link from your instructor is required", "Access length varies and depends on the duration of your instructor's course"], features: ['Help when and where you need it', 'Personalised practice and guidance', 'Instant feedback on assignments', 'Interactive Apps and study tools'] }, { type: 'MyLab', access: ["Register via our MyLab page to complete your purchase", "A Course ID link or VLE link from your instructor is required", "Access length varies and depends on the duration of your instructor's course"], features: ['Interactive digital learning experience', 'Includes eTextbook, Apps and study tools', 'Instant feedback on assignments', 'Help when and where you need it'] }, { type: 'Revel', access: ["Register via our Revel page to complete your purchase", "A Course ID link or VLE link from your instructor is required", "Access length varies and depends on the duration of your instructor's course"], features: ['More than a digital textbook', 'Multimedia content and practice integrated', 'Immediate feedback on tests and quizzes', 'Highlighting, notetaking and study tips', 'Anytime, anywhere learning'] }, ] try { const productViewTypeCurrentInfo = productTypeDetails.find(i => i.type === ecomProductType) if (productViewTypeCurrentInfo) { const accessHTML = productViewTypeCurrentInfo.access.map(i => `
Access details
- ${accessHTML}
Features
- ${featuresHTML}