C Interview Questions
Questions Answers Views Company eMail

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


1 5339

what is a far pointer

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

12 25098

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

Accenture, Arba Minch University,

42 99524

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

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

5 43526

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

Infotech, Accenture, College School Exams Tests,

17 24612

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 16395

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 10817

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

Wipro, ADITI,

4 10667

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


2 6019

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 5576

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 4154

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


3 4305

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 5301



2 4390

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

Deltech, IBM, 3D PLM, Code Studio,

28 65548

Post New C Questions

Un-Answered Questions { C }

what are the facialities provided by you after the selection of the student.


What is C language ?


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm


what is event driven software and what is procedural driven software?


Is Exception handling possible in c language?


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.


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


what is the syallabus of computer science students in group- 1?


c program for searching a student details among 10 student details


how logic is used


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


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?


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 ) { }