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.
2207Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
14574-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
TCS,
1718using only #include
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
3245
What is preprocessor with example?
What is the difference between test design and test case design?
What type is sizeof?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
write a program to copy the string using switch case?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is the purpose of scanf() and printf() functions?
How many types of operators are there in c?
When should a type cast be used?
Why functions are used in c?
What is the basic structure of c?
What are unions in c?
What's the right way to use errno?
What does typedef struct mean?
Explain pointer. What are function pointers in C?