C Interview Questions
Questions Answers Views Company eMail

how to find the kth smallest element in the given list of array elemnts.


8 17887

how to sort two array of characters and make a new array of characters.


1 3494

what is difference between ++(*p) and (*p)++

IBM, HCL, Accenture,

17 11009

what is difference between array of characters and string

Nest, Accenture,

18 35958

char ch=10;printf("%d",ch);what is the output


14 11901

char ch="{'H','I',0};printf("%s",ch);what is output


9 5753

which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma

Wipro, Infosys, Accenture, TCS,

16 12249

what will be the output: main(){char ch;int a=10;printf("%d",ch);}

TCS, Accenture, Wipro,

36 14592

value = 0xabcd; for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) { foo(); if (loop & 1) value >>= 1; } how many times is foo() executed?


6 7320

class foo { public: static int func(const char*& p) const; }; This is illegal, why?


8 10164

how to estimate the disk access time? e.g. the time between read one byte and another byte in the disk.


3 8915

what is the hexidecimal number of 4100?


16 13005

give one ip, find out which contry


4 9051

What is C language Terminator?


15 18988

program to find a smallest number in an array

Sony, Microsoft,

15 29079

Post New C Questions

Un-Answered Questions { C }

how to construct a simulator keeping the logical boolean gates in c


what value is returned to operating system after program execution?


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }


p*=(++q)++*--p when p=q=1 while(q<=6)


Why cd or dvd are round why not square.


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?


all c language question


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?


write a program to copy the string using switch case?


what is the structure pointer?




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 }


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25