Skip to content
Tejsumeru

Thoughts Become Reality

  • Tutorials
  • Video Tutorial
  • Tutorials
  • Video Tutorial
  • Interview Quetions

    What is the difference between near, far and huge pointers?

    December 16, 2019 - By tejsumeru.12@gmail.com

    These are some old concepts used in 16 bit Intel architectures in the days of MS DOS, not much useful anymore. Near pointer is used to store 16 bit addresses means within current segment on a 16 bit machine. The limitation is that we can only access 64kb of data at a time. A far pointer is typically 32 bit that can access memory outside current segment. To use this, compiler allocates a segment register to store segment address, then another register to store offset within current segment. Like far pointer, huge pointer is also typically 32 bit and can access outside segment. In case…

    Continue Reading
  • Interview Quetions

    Why pre-processor directive does not have a semi-colon at last?

    December 16, 2019 - By tejsumeru.12@gmail.com

    Semi-colon is needed by the compiler and as the name suggests Preprocessors are programs that process our source code before compilation. Therefore the semi-colon is not required.

    Continue Reading
  • Interview Quetions

    Describe the modifier in C?

    December 16, 2019 - By tejsumeru.12@gmail.com

    Modifier is a prefix to the basic data type which is used to indicate the modification for storage space allocation to a variable. Example– In 32-bit processor storage space for the int data type is 4.When we use it with modifier the storage space change as follows. Long int -> Storage space is 8 bit Short int -> Storage space is 2 bit

    Continue Reading
  • Interview Quetions

    Is it possible to use curly brackets ({}) to enclose a single line code in C program?

    December 16, 2019 - By tejsumeru.12@gmail.com

    Yes, it is working without any error. Some programmers like to use this to organize the code. But the main purpose of curly brackets is to group several lines of codes.

    Continue Reading
  • Interview Quetions

    What is the incorrect operator form following list(== , , >= ,

    December 16, 2019 - By tejsumeru.12@gmail.com

    Incorrect operator is ‘<>’.This is the format correct when writing conditional statements, but it is not a correct operation to indicate not equal in C programming and it gives compilation error as follows. Code Error

    Continue Reading
  • Interview Quetions

    What are entry control and exit control loops?

    December 16, 2019 - By tejsumeru.12@gmail.com

    C support only 2 loops: Entry Control: This loop is categorized in 2 part a. while loop b. for loop Exit control: In this category, there is one type of loop known as a. do while loop.

    Continue Reading
  • Interview Quetions

    Write down the smallest executable code?

    December 16, 2019 - By tejsumeru.12@gmail.com

    main is necessary for executing the code. Code is void main() { }  

    Continue Reading
  • Interview Quetions

    What is a sequential access file?

    December 16, 2019 - By tejsumeru.12@gmail.com

    In general programs store data into files and retrieve existing data from files. With the sequential access file such data saved in a sequential pattern. When retrieving data from such files each data needs to read one by one until the required information found.

    Continue Reading
  • Interview Quetions

    Can a variable be both const and volatile?

    December 16, 2019 - By tejsumeru.12@gmail.com

    yes, the const means that the variable cannot be assigned a new value. The value can be changed by other code or pointer. For example the following program works fine. int main(void) { const volatile int local = 10; int *ptr = (int*) &local; printf("Initial value of local : %d \n", local); *ptr = 100; printf("Modified value of local: %d \n", local); return 0; }  

    Continue Reading
  • Interview Quetions

    What is volatile keyword?

    December 16, 2019 - By tejsumeru.12@gmail.com

    The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler. Objects declared as volatile are omitted from optimization because their values can be changed by code outside the scope of current code at any time.

    Continue Reading
 Older Posts
Newer Posts 

Categories

  • Android With Java
  • Android With Kotlin
  • C language
  • C++ Language
  • Data Structure
  • Error Solving
  • Flutter
  • Go Lang
  • Interview Quetions
  • Java
  • Javascript
  • Kotlin
  • Machine Learning
  • MATLAB
  • PHP
  • Python
  • SciPy
  • Tutorials
  • Wordpress
Graceful Theme by Optima Themes