7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What are the 4 types of functions?

0 Answers  


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

0 Answers  


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

0 Answers  


Code for calculating square root without using library function, of math.h

4 Answers   IBM,


what is the difference between arrays and linked list

26 Answers   MAHINDRA, Tech Mahindra, Wipro,






What is scope and lifetime of a variable in c?

0 Answers  


What are the preprocessors?

9 Answers   HP,


What is the output of the program #include<stdio.h> #include<conio.h> void main() {0 int i,j=20; clrscr(); for(i=1;i<3;i++) { printf("%d,",i); continue; printf("%d",j); break; } getch(); }

4 Answers   CTS, Oracle,


What is a macro in c preprocessor?

0 Answers  


Why cd or dvd are round why not square.

1 Answers  


what is diffrence between string and character array?

1 Answers  


consagous technology placement paper

3 Answers   Consagous, Sypra,


Categories