C Interview Questions
Questions Answers Views Company eMail

#include main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39

GameLoft,

1 2421

what will be the output of this program? #include #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }

IBM,

6 4399

What is the output from this program? #include void do_something(int *thisp, int that) { int the_other; the_other = 5; that = 2 + the_other; *thisp = the_other * that; } int main(void) { int first, second; first = 1; second = 2; do_something(&second, first); printf("%4d%4d\n", first, second); return 0; }

3 2842




what is pointer?

HCL, TCS,

13 6963

Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);

5 3816

stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1082

Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

OpenFeel,

4 5322

Difference between data structure and data base.

CTS, Value Labs, Zoho,

7 24708




There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?

1 1560

Is there any book to know about Basics of C Language?

4 2188

What is the difference between CV and Resume ?

2 2896

what are the stages of compilation

Bosch,

1 4561

What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3018

who is the editor of 'pokemon'?

1 1781

Wt are the Buses in C Language

Infosys,

2037


Post New C Questions






Un-Answered Questions { C }

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.

2492


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

13190


show how link list can be used to repersent the following polynomial i) 5x+2

954


write a c program to calculate sum of digits till it reduces to a single digit using recursion

1947


How to delete a node from linked list w/o using collectons?

1393






1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

912


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

929


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

878


how to capitalise first letter of each word in a given string?

756


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

760


write an algorithm to display a square matrix.

1397


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

853


Can you write the algorithm for Queue?

836


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

734


what type of questions arrive in interview over c programming?

880