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,

889

string reverse using recursion

Mind Tree,

1066

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

Infosys,

2 2560




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

731

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

1 2074

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

HCL,

1 1823

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

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

886




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

924

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

1133

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

1136

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

1 2188

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 8414

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

Wipro, Infosys,

852

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

2 22537


Post New C Questions






Un-Answered Questions { C }

how is the examination pattern?

857


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

895


write a program to find the given number is prime or not

2329


Give basis knowledge of web designing ...

832


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2100






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

984


what type of questions arrive in interview over c programming?

847


char *p="name"; printf(p);

655


please give me some tips for the placement in the TCS.

919


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1948


write an algorithm to display a square matrix.

1364


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

1496


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1013


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

1635


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1452