C Interview Questions
Questions Answers Views Company eMail

Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

TCS, Vimukti Technologies,

5 4107

5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

TCS,

1 2320

Why is the code below functioning. According to me it MUST NOT.

1 1951




write a program in C to swap two variables

Marlabs, Attrabyte,

7 5962

mplementation of stack using any programing language

Marlabs,

1 2160

How to find the usage of memory in a c program

Infosys,

1 3153

How can you print HELLO WORLD without using "semicolon"?

HCL, Infosys,

7 5748

struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 3692




Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors

3 3006

Write a program that takes a 5 digit number and calculates 2 power that number and prints it

7 3288

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1107

what will be the output off the following program? #include int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

HCL,

9 5993

change to postfix a/(b+c*d-e)

Value Labs,

8 3356

write a method for an array in which it can display the largest n next largest value.

Value Labs,

1 2410

write a program to find the largest and second largest integer from an array

Value Labs,

2 7032


Post New C Questions






Un-Answered Questions { C }

write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2442


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

838


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

663


what is ur strangth & weekness

1012


write a c program for swapping two strings using pointer

1261






write a program to print data of 5 five students with structures?

836


Why we not create function inside function.

900


i have a written test for microland please give me test pattern

1353


how to print the character with maximum occurence and print that number of occurence too in a string given ?

1245


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 }

1847


How will you find a duplicate number in a array without negating the nos ?

890


can any one tel me wt is the question pattern for NIC exam

811


what value is returned to operating system after program execution?

805


Without Computer networks, Computers will be half the use. Comment.

955


shorting algorithmS

903