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 3559

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 7282

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 5114

what is pointer?

HCL, TCS,

13 12036

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

5 6299

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.

1821

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 7647

Difference between data structure and data base.

CTS, Value Labs, Zoho,

7 31748

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 2572

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

4 4044

What is the difference between CV and Resume ?

2 4246

what are the stages of compilation

Bosch,

1 5744

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

3706

who is the editor of 'pokemon'?

1 2853

Wt are the Buses in C Language

Infosys,

2723


Post New C Questions

Un-Answered Questions { C }

Is python a c language?

524


What is const and volatile in c?

540


Where register variables are stored in c?

530


What is variable initialization and why is it important?

591


how to find anagram without using string functions using only loops in c programming

2691






What is the purpose of 'register' keyword in c language?

594


Why void is used in c?

544


How can I ensure that integer arithmetic doesnt overflow?

587


What is a built-in function in C?

754


What are reserved words with a programming language?

574


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

636


What is #include conio h?

564


Why c is known as a mother language?

608


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14895


Explain what is wrong with this program statement?

593