C Interview Questions
Questions Answers Views Company eMail

Write a routine that prints out a 2-D array in spiral order!


1 5291

what is a far pointer

ITI, ABB, TCS, Steel Plant, DRDO, Vivo Mobiles, Maruti Suzuki, Toyota,

12 24702

Write a program to compare two strings without using the strcmp() function

Accenture, Arba Minch University,

42 98845

what is the difference between const char *p, char const *p, const char* const p

Verizon, CTS, Aricent, Accenture, Geometric Software, Point Cross,

5 43219

Write a program to interchange two variables without using the third variable?

Infotech, Accenture, College School Exams Tests,

17 23837

What is the output of the program given below #include main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

TCS, ADITI, Student,

21 16103

What is the output of the following program #include main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }

Adobe, ADITI,

8 10631

What is the memory allocated by the following definition ? int (*x)[10];

Wipro, ADITI,

4 10501

What is the memory allocated by the following definition ? int (*x)();


2 5943

What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }


4 5475

Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); }


2 4090

#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }


3 4241

What is the output for the following program #include main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }

Wipro, ADITI,

5 5207



2 4343

WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

Deltech, IBM, 3D PLM, Code Studio,

28 64907

Post New C Questions

Un-Answered Questions { C }

In which layer of the network datastructure format change is done


write a program to copy the string using switch case?


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code


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


`write a program to display the recomended action depends on a color of trafic light using nested if statments


I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }


how do you programme Carrier Sense Multiple Access


shorting algorithmS


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???


write a program to generate address labels using structures?


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.


provide an example of the Group by clause, when would you use this clause


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??


pierrot's divisor program using c or c++ code