C Interview Questions
Questions Answers Views Company eMail

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

Mind Tree,


string reverse using recursion

Mind Tree,


what is the main use of c where it can use the c


2 2505

what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 1985

without using control structures and control structures find the max and min of given 2 nos


1 1787

#include #include void main() { int i; if(1,0,2,3) { printf("if"); } else { printf("else"); } getch(); } Can any body tell the answer of this question with explanation?


3 3264

prog for 1st five prime numbers in 2^x - 1


write a c program in such a way that if we enter the today date the output should be next day's date.


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


write a program to print largest number of each row of a 2D array


1. Write a program to reverse every second word in a given sentence.

1 2139

In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a


2 8325

List the variables are used for writing doubly linked list program.

Wipro, Infosys,


write a c program to find largest number in matrix(in each row,each column, diagonally, and in the whole matrix)? Its urgent.

2 22281

Post New C Questions

Un-Answered Questions { C }

what is the diffrenet bettwen HTTP and internet protocol


How to draw the flowchart for structure programs?


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon


hi, which software companys will take,if d candidate's % is jst 55%?


How to delete a node from linked list w/o using collectons?


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.


Why is event driven programming or procedural programming, better within specific scenario?


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.


Write a c program to demonstrate character and string constants?


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...