C Interview Questions
Questions Answers Views Company eMail

Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

722

Differentiate b/w Modify and Update commands giving example.

1 1870

What's the difference between DELETE TABLE and TRUNCATE TABLE commands?

CTC,

2 2213




‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1169

what is the difference between getch() and getche()?

Infosys,

7 22900

who is the father of c

Infosys,

4 3838

what is pointer ? what is the use of pointer?

Infosys,

6 4518

what is the difference between call by value and call by reference?

Infosys,

5 5208




#include main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }

Infosys,

7 5836

How is a two dimensional array passed to function when the order of matrix is not known at complie time?

CSC,

1 1689

How can I access a memory located at certain address?

CSC,

2 2675

How can we allocate array or structure bigger than 64kb?

CSC,

2 2382

How can I read a directory in a c program?

CSC,

1 2372

How can I increase the allowable number of simultaneously open files?

CSC,

1 2525

Famous puzzles which are generally asked by companies during interviews ?

Yahoo, 3D PLM,

1 11580


Post New C Questions






Un-Answered Questions { C }

Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

2175


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

1013


Write a progarm to find the length of string using switch case?

826


to find the closest pair

1013


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

887






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

1134


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

1228


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

1558


how to execute a program using if else condition and the output should enter number and the number is odd only...

861


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

1941


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

1497


write a program to generate address labels using structures?

1464


Sir i need notes for structure,functions,pointers in c language can you help me please

1235


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...

688


what is a function method?give example?

1094