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,

901

string reverse using recursion

Mind Tree,

1085

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

Infosys,

2 2580




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

742

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

1 2091

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

HCL,

1 1841

#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?

Huawei,

3 3440

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

896




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

934

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

1153

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

1150

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

1 2209

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

BitWise,

2 8482

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

Wipro, Infosys,

872

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

2 22682


Post New C Questions






Un-Answered Questions { C }

what is stack , heap ,code segment,and data segment

1510


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

745


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

862


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

990


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

749






Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

3736


to find the closest pair

1028


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

698


How to establish connection with oracle database software from c language?

935


a program that can input number of records and can view it again the record

723


find out largest elemant of diagonalmatrix

856


can anyone suggest some site name..where i can get some good data structure puzzles???

929


write a c program for swapping two strings using pointer

1327


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

1934


if p is a string contained in a string?

692