C Interview Questions
Questions Answers Views Company eMail

C program to read the integer and calculate sum and average using single dimensional array

379

main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 523

4. main() { int c=- -2; printf("c=%d",c); }

520




Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 5252

void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

383

In which layer of the network datastructure format change is done

Honeywell,

463

write a c program for swapping two strings using pointer

1261

cavium networks written test pattern ..

Cavium Networks,

2122




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

256

what is used instead of pointers in java than c?

Vuram,

305

#include int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }

Zoho,

3 974

Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

516

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

Vector, Vector India,

1 2079

#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

195

print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

Winit,

1 633


Post New C Questions






Un-Answered Questions { C }

i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

731


Stimulate calculator using Switch-case-default statement for two numbers

1701


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

1447


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

653


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

12676






You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

1849


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.

1016


what are the 10 different models of writing an addition program in C language?

673


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

702


i have a written test for microland please give me test pattern

1353


Sir i need notes for structure,functions,pointers in c language can you help me please

1211


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

774


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

4211


How to write a code for reverse of string without using string functions?

791


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.

2443