Skip to content
Tejsumeru

Thoughts Become Reality

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

    Distinguish between malloc() and calloc ()memory allocation.

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

    Both allocates memory from heap area/dynamic memory. By default calloc fills the allocated memory with 0’s

    Continue Reading
  • Interview Quetions

    What is a pointer on pointer?

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

    It’s a pointer variable which can hold the address of another pointer variable. It de-refers twice to point to the data held by the designated pointer variable. Eg: int x = 5, *p=&x, **q=&p; Therefore ‘x’ can be accessed by **q.

    Continue Reading
  • Interview Quetions

    What are the key features in the C programming language?

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

    Portability – Platform independent language. Modularity – Possibility to break down large programs into small modules. Flexibility – The possibility to a programmer to control the language. Speed – C comes with support for system programming and hence it is compiling and executes with high speed when compared with other high-level languages. Extensibility – Possibility to add new features by the programmer.

    Continue Reading
  • Interview Quetions

    What is NULL pointer?

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

    NULL is used to indicate that the pointer doesn’t point to a valid location. Ideally, we should initialize pointers as NULL if we don’t know their value at the time of declaration. Also, we should make a pointer NULL when memory pointed by it is deallocated in the middle of a program.

    Continue Reading
  • Interview Quetions

    When should we use pointers in a C program?

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

    1. To get address of a variable 2. For achieving pass by reference in C: Pointers allow different functions to share and modify their local variables. 3. To pass large structures so that complete copy of the structure can be avoided. 4. To implement “linked” data structures like linked lists and binary trees.

    Continue Reading
  • Interview Quetions

    How will you print “Hello World” without semicolon?

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

    #include <stdio.h> int main(void) { if (printf("Hello World")) { } }  

    Continue Reading
  • Interview Quetions

    What is scope of a variable? How are variables scoped in C?

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

    Scope of a variable is the part of the program where the variable may directly be accessible. In C, all identifiers are lexically (or statically) scoped.

    Continue Reading
  • Interview Quetions

    What are different storage class specifiers in C?

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

    auto, register, static, extern

    Continue Reading
  • Interview Quetions

    What is the difference between declaration and definition of a variable/function.

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

    Declaration of a variable/function simply declares that the variable/function exists somewhere in the program but the memory is not allocated for them. But the declaration of a variable/function serves an important role. And that is the type of the variable/function. Therefore, when a variable is declared, the program knows the data type of that variable. In case of function declaration, the program knows what are the arguments to that functions, their data types, the order of arguments and the return type of the function. So that’s all about declaration. Coming to the definition, when we define a variable/function, apart from…

    Continue Reading
  • Java

    Write a java program which generates student grade report in console. Take student roll number and marks (out of 100) of 5 courses from user. Calculate the percentage and display grade of the student. Use appropriate control statements.

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

    The below program shows how to use array and store student’s details and fetch details. Here we are using for each loop which is used to iterate throughout entire array element. Example import java.util.Scanner; class FindGrade { //get roll number and marks of student and calculate percentage and grade public static void main(String args[]) { int sub[],i,total=0; float per=0.0f; Scanner sc; String rNo; sub=new int[5]; sc=new Scanner(System.in); System.out.println("Enter Roll Number"); rNo=sc.next(); for(i=0;i<5;i++) { System.out.println("Enter Marks Of Subject "+(i+1)); sub[i]=sc.nextInt(); total=total+sub[i]; } per=total*100/500; System.out.println("\n***** Details Of Student *****\n"); System.out.println("\nRoll Number "+rNo); System.out.println("Total Marks Gained Is "+total); System.out.println("Percentage Gained Is "+per); if(per>90)…

    Continue Reading
 Older Posts
Newer Posts 

Categories

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