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,

938

string reverse using recursion

Mind Tree,

1124

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

Infosys,

2 2641




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

785

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

1 2148

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

HCL,

1 1889

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

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

934




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

969

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

1213

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

1187

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

1 2275

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 8566

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

Wipro, Infosys,

908

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

2 22965


Post New C Questions






Un-Answered Questions { C }

in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

4790


why return type of main is not necessary in linux

1019


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

3366


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

2058


hi any body pls give me company name interview conduct "c" language only

882






The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

292


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

910


Why is it important to memset a variable, immediately after allocating memory to it ?

879


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

2045


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

2516


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

638


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

926


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

1550


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

784


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

1034