• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Unix

C Program for TAIL command of UNIX

April 27, 2015 by Dhaval Dave

/*
* usage: myTail [-n] [<filename>] */

#include <stdio.h>
#include <stdlib.h>

#define MAX_LINE_LEN 1024
#define DEFAULT_N 10

int main(int argc, char *argv[]) {
char **tail;
int count = DEFAULT_N, n, i, headX = 0, tailX 
… Read More

Filed Under: Adobe Interview Questions, Interview Questions, problem Tagged With: c, Unix

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Word Break Problem

Daughter’s Age VeryGood Puzzle

Add Sub Multiply very large number stored as string

Find the element that appears once others appears thrice

Find the smallest window in a string containing all characters of another string

Interfaces in C++ (Abstract Classes in C++)

Memory Efficient LinkedList

Python Array String

N Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

Maximum of all subarrays of size k

Trapping Rain Water

Given a string, find the first character which is non-repetitive

Trie Dictionary

Mirror of Tree

Check if an array has duplicate numbers in O(n) time and O(1) space

Print Power Set of a Set

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Introduction To Number Theory ( Part 1 )

Given Set of words or A String find whether chain is possible from these words or not

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Spanning Tree

Binary Tree in Java

SAP Interview Questions

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Serialise Deserialise N-ary Tree

Implement a generic binary search algorithm for Integer Double String etc

Find Pythagorean Triplets in an array in O(N)

Calculate price of parking from parking start end time prices

Maximum size of square sub matrix with all 1’s in a binary matrix

Copyright © 2026 · Genesis Framework · WordPress · Log in