Arrays
Making a pascal triangle using array and without using array in turbo c.... Can't able to figure it out,please me... ---Posted from iPhone App---
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 25, 2011, 6:14 AM EDT
Without using arrays (i.e. using the binomial coefficients instead), the code would be:
In this second case, you can only really display the numbers as a right-angled rather than an equilateral triangle as you don't know how long each line will be until you've generated the numbers.