C Interview Questions

Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

4212

5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

TCS,

2382

Why is the code below functioning. According to me it MUST NOT.

2023

write a program in C to swap two variables

6091

mplementation of stack using any programing language

2230

How to find the usage of memory in a c program

3235

How can you print HELLO WORLD without using "semicolon"?

5897

struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3819

Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors

3088

Write a program that takes a 5 digit number and calculates 2 power that number and prints it

3393

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1152

what will be the output off the following program? #include int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

HCL,

6162

change to postfix a/(b+c*d-e)

3492

write a method for an array in which it can display the largest n next largest value.

2469

write a program to find the largest and second largest integer from an array

7109

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.

1055

in iso what are the common technological language?

933

Without Computer networks, Computers will be half the use. Comment.

1002

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

3024

which is an algorithm for sorting in a growing Lexicographic order

649

1490

what is a function method?give example?

1111

write a c program in such a way that if we enter the today date the output should be next day's date.

938

Write a c program to demonstrate character and string constants?

947

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

310

Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1027

List the variables are used for writing doubly linked list program.

875

disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

830

Why we not create function inside function.

950

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

897