C Interview Questions
Questions Answers Views Company eMail

sir, i cannot find the way how to write aprogram by using array on queue

IISIT,

1 1755

WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?

IBM, SAS, Carphone Warehouse,

8 12960

How can I make a program in c to print 'Hello' without using semicolon in the code?

C DAC, Practical Viva Questions,

9 9442




write a function to find whether a string is palindrome or not and how many palindrome this string contain?

Aptech,

2 9508

compute the nth mumber in the fibonacci sequence?

HPL, Satyam, Canon, TCS,

10 11508

What are the commands should be given before weiting C Program i.e, Cd.. like

IBM, Satyam, Infonet, Tech Mahindra,

4 3532

can i know the source code for reversing a linked list with out using a temporary variable?

Honeywell,

6 5425

hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES

Wipro,

2 3750




how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com

Honeywell, Huawei,

3 4225

difference between i++* and *++i

IBM,

6 8158

hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

HCL,

886

write a code for large nos multilication (upto 200 digits)

Persistent,

2 6419

can u give me the good and very optimised code for a car racing game?

641

What is meant by global static? why we have to use static variable instead of Global variable

L&T,

4 4563

In how much time you will write this c program? Prime nos from 1 to 1000

TCS,

2 1992


Post New C Questions






Un-Answered Questions { C }

Using which language Test cases are added in .ptu file of RTRT unit testing???

1188


Without Computer networks, Computers will be half the use. Comment.

928


praagnovation

735


a c code by using memory allocation for add ,multiply of sprase matrixes

1372


why return type of main is not necessary in linux

888






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

2243


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

854


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

773


Stimulate calculator using Switch-case-default statement for two numbers

1680


write a proram to reverse the string using switch case?

1370


How to draw the flowchart for structure programs?

6274


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

743


which is an algorithm for sorting in a growing Lexicographic order

585


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

1080


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

525