C Interview Questions
Questions Answers Views Company eMail

How do you access command-line arguments?

1 1524

what does ‘#include’ mean?


1 2889

what is the difference between #include<> and #include”…”?

4 3098

what are # pragma staments?


what is the most appropriate way to write a multi-statement macro?

1 2950

what is the disadvantage of using macros?


1 4158

what is the self-referential structure?

1 3359

can a union be self-referenced?

1 4499

What is a pointer?


1 2272

What is the Lvalue and Rvalue?

2 4097

what is a void pointer?

2 2163

why arithmetic operation can’t be performed on a void pointer?

1 5115

compare array with pointer?

1 2291

what is a NULL pointer?

2 1949

what does ‘segmentation violation’ mean?

1 2173

Post New C Questions

Un-Answered Questions { C }

the data type used for unlimited value in c and how to do this program


write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.


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


char *p="name"; printf(p);


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


how to execute a program using if else condition and the output should enter number and the number is odd only...


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.


How to delete a node from linked list w/o using collectons?


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)