C Interview Questions
Questions Answers Views Company eMail

Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 4450

Output for following program using for loop only * * * * * * * * * * * * * * *

3 4219

program for following output using for loop? 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

Aptech, Infosys,

8 27766

program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

Infosys,

8 8578

simple program of graphics and their output display

Elysium,

1444

If the static variable is declared as global, will it be same as extern?

Samsung,

1 5907

How to print India by nested loop? I IN IND INDI INDIA

NIIT, Wipro,

4 16310

simple program of graphics and thier outpu display with a want what is out put of graohics in c language

CSC, HCL,

1 2913

A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

HCL,

1668

plz let me know how to become a telecom protocol tester. thank you.

1722

If input is 123 then how to print 100 and 20 and 3 seperately?

4 5857

An entire structure variable can be assigned to another structure variable if __________

Sasken, TCS, Tech Mahindra, Wipro,

3 19691

Give the logic for this #include #include void main() { clrscr(); int a=10,b; b=++a + ++a; printf("%d", b); getch(); } Output: 24......How?

Accenture,

2 4810

in malloc and calloc which one is fast and why?

1 4694

Difference between C and Embedded C?

1 3938


Post New C Questions

Un-Answered Questions { C }

a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

603


What is quick sort in c?

562


What is the use of in c?

551


Subtract Two Number Without Using Subtraction Operator

330


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

612






Why shouldn’t I start variable names with underscores?

598


What is action and transformation in spark?

568


What are pointers? Why are they used?

602


When is the “void” keyword used in a function?

805


What are the salient features of c languages?

608


What is the sizeof () operator?

594


#include { printf("Hello"); } how compile time affects when we add additional header file .

1408


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2684


In a header file whether functions are declared or defined?

609


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.

2196