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 14816

what is link list?

3 4910

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

1 22242

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

Tech Mahindra,

12 30358

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 3027

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 3307

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 24784

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

2 6582

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

3 5757

tell me the full form of c?

2 6631

Reverse a string word by word??

9 13712

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

TCS, Wipro,

22 40019

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

TCS,

3 14778

How would you sort a linked list?

1 3181

why the execution starts from main function

9 17608


Post New C Questions

Un-Answered Questions { C }

In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1726


What are valid signatures for the Main function?

771


Write a C program to count the number of email on text

1492


Process by which one bit pattern in to another by bit wise operation is?

701


What are examples of structures?

674






Explain what is dynamic data structure?

746


What are the types of i/o functions?

769


what will be maximum number of comparisons when number of elements are given?

1507


What do header files do?

692


What is the use of gets and puts?

682


What are the 5 data types?

665


What is the maximum length of an identifier?

757


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

3141


What is signed and unsigned?

713


Explain the priority queues?

710