C Interview Questions
Questions Answers Views Company eMail

can we store values and addresses in the same array? explain

TCS,

3 5454

what is the difference between NULL('\0') and 0?

Microsoft,

14 9441

IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

TCS,

5 3715




what is function pointer?

Wipro,

2 2802

write a c program to convert fahrenheit to celsius?

TCS,

4 9248

There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

1946

Write a program to print distinct words in an input along with their count in input in decreasing order of their count

1101

write a program to convert a expression in polish notation (postfix) to inline (normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix

2016




Program to simulate second clock

2 1755

to convert a string without using decrement operater and string functions

1 1638

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }

6 6125

What is the difference between i++ and i+1 ?(in terms of memory)

HCL,

3 8763

Difference between for loop and while loop?

1 2683

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 1328

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 1402


Post New C Questions






Un-Answered Questions { C }

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

2940


shorting algorithmS

875


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

391


write a program for the normal snake games find in most of the mobiles.

1053


what is the basis for selection of arrays or pointers as data structure in a program

2949






what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

619


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

819


write an algorithm to display a square matrix.

1302


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1663


what is the difference between class and unio?

1046


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

690


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

1115


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

636


what is the syallabus of computer science students in group- 1?

1027


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

228