Data Structures Interview Questions

Showing Questions 201 - 220 of 253 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    C Program to replication of string

    Write a c program to implement the replication of string which will be given as a command line argument?

    saurabh singh

    • Jun 19th, 2014

    Here is a simple code using command line argument to print multiple number of strings with "_" between them. To check the output , type this in command prompt : filename ABC 5 OUTPUT: ABC_ABC_ABC_ABC_ABC

    Code
    1.  
    2. #include<stdio.h>
    3. #include<stdlib.h>
    4. "Enter CLA""%s""_%s "

    Abhishek

    • Nov 11th, 2011

    "c #include #include #include char * string_repeat( int n, const char * s ) { size_t slen = strlen(s); char * dest = calloc(n*slen+1, sizeof(char)); int i; char * p; ...

  •  

    Circular Queue

    What is Circular Queue? Explain with examples.

    siddhi parkar

    • Jul 6th, 2014

    In linear queue once the size is full we cannot add another items cause rear is at rightmost .
    but in circular list to add element even if its full you will move front and rear in clockwise direction.

  •  

    What is the relationship between a queue and its underlying array?

    Skill/Topic: QueueA) Data stored in a queue is actually stored in an array. The queue tracks which array element is at the front of the queue and which array element is at the back of the queue.

    Franklin Fujimori

    • Jul 8th, 2014

    A queues elements may be stored in an array. Two indexes, front and end will be used to identify the start and end of the queue. When an element is removed front will be incremented by 1. In case it ...

    samiksc

    • Jan 19th, 2006

    A queue's elements may be stored in an array. Two indexes, front and end will be used to identify the start and end of the queue. When an element is removed front will be incremented by 1. In case it ...