C Interview Questions
Questions Answers Views Company eMail

Write a C program that reads a series of strings and prints only those ending in "ed"

Accenture,

2 14456

what is link list?

3 4597

main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain

1 21898

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

Tech Mahindra,

12 29151

I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7

1 2853

I have an array of 100 elements. Each element contains some text. i want to: append a star character to the end of every fifth element remove every second character from every tenth element, and… add a line feed (ascii 10) after the 30th character of every array element whose length is greater than 30 characters.

1 3127

if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?

Amazon, Apple, Bata, Google, NASA,

4 24100

any string of bits of length 'n' represents a unique non- negative integer between.............?

2 6352

write a function which accept two numbers from main() and interchange them using pointers?

3 5491

tell me the full form of c?

2 6330

Reverse a string word by word??

9 13231

wap to print "hello world" without using the main function.

TCS, Wipro,

22 38607

wite a programme in c to linear search a data using flag and without using flags?

TCS,

3 14437

How would you sort a linked list?

1 3004

why the execution starts from main function

9 16966


Post New C Questions

Un-Answered Questions { C }

What is the difference between int main and void main in c?

569


Explain what is wrong with this program statement?

593


Explain goto?

687


What are 'near' and 'far' pointers?

594


Are there any problems with performing mathematical operations on different variable types?

546






How do you do dynamic memory allocation in C applications?

611


Differentiate between full, complete & perfect binary trees.

643


What is an operator?

632


What are the types of i/o functions?

651


What math functions are available for integers? For floating point?

597


What is the purpose of clrscr () printf () and getch ()?

570


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3210


Tell me what is null pointer in c?

589


Explain modulus operator. What are the restrictions of a modulus operator?

580


Why do we need functions in c?

531