C Interview Questions
Questions Answers Views Company eMail

what is uses of .net

1259

Write a program that accept anumber in words

1242

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.

2207

Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1457

4-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,

1718

when to use : in c program?

2 2556

write a program to generate address labels using structures?

SJC,

3996

5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1572

#include void main() { int =1; printf("%d%d%d",a++,++a,++a); }

VB,

3 4549

sum of two integers values only other then integer it should print invalid input.

1 1785

c program to input values in a table(using 2D array) and print odd numbers from them

1 1923

Why array starts with index 0

2 2626

What is Conio.h ?

TCS,

2 3113

using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1302

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


Post New C Questions

Un-Answered Questions { C }

What is preprocessor with example?

572


What is the difference between test design and test case design?

1559


What type is sizeof?

573


#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); }

772


write a program to copy the string using switch case?

2389






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

614


What is the purpose of scanf() and printf() functions?

706


How many types of operators are there in c?

608


When should a type cast be used?

569


Why functions are used in c?

573


What is the basic structure of c?

547


What are unions in c?

568


What's the right way to use errno?

611


What does typedef struct mean?

644


Explain pointer. What are function pointers in C?

616