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,

1709

string reverse using recursion

Mind Tree,

1813

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

Infosys,

2 3974

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

1455

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

1 3306

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

HCL,

1 3137

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

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

1616

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

1684

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

2215

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

1873

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

1 5256

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 10537

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

Infosys, Wipro,

1625

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

2 25642


Post New C Questions

Un-Answered Questions { C }

A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

1700


Explain the use of fflush() function?

628


Describe the steps to insert data into a singly linked list.

623


Explain how to reverse singly link list.

607


Write a program of advanced Fibonacci series.

710






Can you return null in c?

598


How can I get back to the interactive keyboard if stdin is redirected?

671


Compare interpreters and compilers.

640


What is meant by initialization and how we initialize a variable?

588


Write a program to swap two numbers without using a temporary variable?

612


What is scanf_s in c?

634


How can variables be characterized?

1653


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

2802


What is queue in c?

579


what do u mean by Direct access files? then can u explain about Direct Access Files?

1643